Skip to content

Commit a3c4eaa

Browse files
committed
Allow wait in nw method handlers
1 parent 1fe6c28 commit a3c4eaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/dispatcher_host.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ bool DispatcherHost::Send(IPC::Message* message) {
6969
bool DispatcherHost::OnMessageReceived(const IPC::Message& message) {
7070
bool handled = true;
7171
base::ThreadRestrictions::ScopedAllowIO allow_io;
72+
base::ThreadRestrictions::ScopedAllowWait allow_wait;
7273
IPC_BEGIN_MESSAGE_MAP(DispatcherHost, message)
7374
IPC_MESSAGE_HANDLER(ShellViewHostMsg_Allocate_Object, OnAllocateObject)
7475
IPC_MESSAGE_HANDLER(ShellViewHostMsg_Deallocate_Object, OnDeallocateObject)

0 commit comments

Comments
 (0)