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

Unified Diff: ipc/ipc_sync_channel.cc

Issue 9960058: ipc: don't treat replies with the unblock flag set as regular messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 8 years, 8 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 | ipc/ipc_sync_channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_channel.cc
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc
index 2763ebd3220134dd0f9a13de5deede583281053c..b9dc2c5582f9d2a0a3529a327729f8466d672fd5 100644
--- a/ipc/ipc_sync_channel.cc
+++ b/ipc/ipc_sync_channel.cc
@@ -323,13 +323,13 @@ bool SyncChannel::SyncContext::OnMessageReceived(const Message& msg) {
if (TryToUnblockListener(&msg))
return true;
- if (msg.should_unblock()) {
- received_sync_msgs_->QueueMessage(msg, this);
+ if (msg.is_reply()) {
+ received_sync_msgs_->QueueReply(msg, this);
return true;
}
- if (msg.is_reply()) {
- received_sync_msgs_->QueueReply(msg, this);
+ if (msg.should_unblock()) {
+ received_sync_msgs_->QueueMessage(msg, this);
return true;
}
« no previous file with comments | « no previous file | ipc/ipc_sync_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698