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

Unified Diff: chrome/common/ipc_sync_channel.cc

Issue 42113: Ensure that a listener's OnChannelConnected is called before OnMessageReceive... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/common/ipc_channel_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/ipc_sync_channel.cc
===================================================================
--- chrome/common/ipc_sync_channel.cc (revision 11508)
+++ chrome/common/ipc_sync_channel.cc (working copy)
@@ -10,7 +10,6 @@
#include "base/message_loop.h"
#include "base/waitable_event.h"
#include "base/waitable_event_watcher.h"
-#include "chrome/common/ipc_logging.h"
#include "chrome/common/ipc_sync_message.h"
using base::TimeDelta;
@@ -104,20 +103,7 @@
message_queue_.pop_front();
}
-#ifdef IPC_MESSAGE_LOG_ENABLED
- Logging* logger = Logging::current();
- if (logger->Enabled())
- logger->OnPreDispatchMessage(*message);
-#endif
-
- if (context->listener())
- context->listener()->OnMessageReceived(*message);
-
-#ifdef IPC_MESSAGE_LOG_ENABLED
- if (logger->Enabled())
- logger->OnPostDispatchMessage(*message, context->channel_id());
-#endif
-
+ context->OnDispatchMessage(*message);
delete message;
}
}
« no previous file with comments | « chrome/common/ipc_channel_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698