| Index: mojo/public/cpp/bindings/lib/router.cc
|
| diff --git a/mojo/public/cpp/bindings/lib/router.cc b/mojo/public/cpp/bindings/lib/router.cc
|
| index 2fcc7d74131987ef5f4f1fa39725df8bde5b3e47..2db2eed3e3d4a42847cd5cb881cc237730c42d79 100644
|
| --- a/mojo/public/cpp/bindings/lib/router.cc
|
| +++ b/mojo/public/cpp/bindings/lib/router.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/logging.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/stl_util.h"
|
| +#include "mojo/public/cpp/bindings/sync_call_restrictions.h"
|
|
|
| namespace mojo {
|
| namespace internal {
|
| @@ -165,6 +166,8 @@ bool Router::AcceptWithResponder(Message* message, MessageReceiver* responder) {
|
| return true;
|
| }
|
|
|
| + SyncCallRestrictions::AssertSyncCallAllowed();
|
| +
|
| bool response_received = false;
|
| std::unique_ptr<MessageReceiver> sync_responder(responder);
|
| sync_responses_.insert(std::make_pair(
|
|
|