Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(925)

Unified Diff: ipc/mojo/ipc_mojo_bootstrap.cc

Issue 1811433002: [mojo-edk] Expose notification source to MojoWatch callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/binding.h » ('j') | mojo/public/cpp/bindings/binding.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_mojo_bootstrap.cc
diff --git a/ipc/mojo/ipc_mojo_bootstrap.cc b/ipc/mojo/ipc_mojo_bootstrap.cc
index a80b46103014ca07e305618d986a9b3f52239bc2..db498b40107c4756639eed962c88957cb06b8963 100644
--- a/ipc/mojo/ipc_mojo_bootstrap.cc
+++ b/ipc/mojo/ipc_mojo_bootstrap.cc
@@ -48,6 +48,7 @@ void MojoServerBootstrap::Connect() {
bootstrap_.Bind(mojom::BootstrapPtrInfo(TakeHandle(), 0));
bootstrap_.set_connection_error_handler(
base::Bind(&MojoServerBootstrap::Fail, base::Unretained(this)));
+ bootstrap_.SetAllowSyncDispatch(true);
IPC::mojom::ChannelAssociatedRequest send_channel_request;
IPC::mojom::ChannelAssociatedPtrInfo receive_channel;
@@ -107,6 +108,7 @@ void MojoClientBootstrap::Connect() {
binding_.Bind(TakeHandle());
binding_.set_connection_error_handler(
base::Bind(&MojoClientBootstrap::Fail, base::Unretained(this)));
+ binding_.SetAllowSyncDispatch(true);
}
void MojoClientBootstrap::Init(mojom::ChannelAssociatedRequest receive_channel,
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/binding.h » ('j') | mojo/public/cpp/bindings/binding.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698