Index: ipc/ipc_sync_channel.cc |
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc |
index 35b88a7edeb43a64ea0b37cf91b284c1ca0f8596..845eccd813d2f408d8da76ce4aeddd5ce5e2a56b 100644 |
--- a/ipc/ipc_sync_channel.cc |
+++ b/ipc/ipc_sync_channel.cc |
@@ -460,6 +460,14 @@ void SyncChannel::SetRestrictDispatchChannelGroup(int group) { |
sync_context()->set_restrict_dispatch_group(group); |
} |
+scoped_refptr<SyncMessageFilter> SyncChannel::CreateSyncMessageFilter() { |
+ scoped_refptr<SyncMessageFilter> filter = new SyncMessageFilter( |
+ sync_context()->shutdown_event(), |
+ sync_context()->IsChannelSendThreadSafe()); |
+ AddFilter(filter.get()); |
+ return filter; |
+} |
+ |
bool SyncChannel::Send(Message* message) { |
#ifdef IPC_MESSAGE_LOG_ENABLED |
std::string name; |