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

Unified Diff: mojo/public/cpp/bindings/lib/router.cc

Issue 265133002: Mojo: Fix Router::HandleIncomingMessage(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31676bd76f78cc2260b92f2af4c3cc3b354a4276..ec68bba9459bf2b73754a9ee1ec648022ebb1227 100644
--- a/mojo/public/cpp/bindings/lib/router.cc
+++ b/mojo/public/cpp/bindings/lib/router.cc
@@ -125,8 +125,9 @@ bool Router::HandleIncomingMessage(Message* message) {
}
MessageReceiver* responder = it->second;
responders_.erase(it);
- responder->Accept(message);
+ bool ok = responder->Accept(message);
delete responder;
+ return ok;
} else {
if (incoming_receiver_)
return incoming_receiver_->Accept(message);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698