summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjabdelmalek@google.com <jabdelmalek@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 21:11:46 +0000
committerjabdelmalek@google.com <jabdelmalek@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 21:11:46 +0000
commit0fd5900da10af62f21b4a72709676151a167d0a1 (patch)
tree897333d967a87f621811a7a7a369fb60e27e176d /chrome/browser
parent596ff54303195463938e117bcf110195c680e474 (diff)
downloadchromium_src-0fd5900da10af62f21b4a72709676151a167d0a1.zip
chromium_src-0fd5900da10af62f21b4a72709676151a167d0a1.tar.gz
chromium_src-0fd5900da10af62f21b4a72709676151a167d0a1.tar.bz2
Make handled set to true if ResourceDispatcherHost uses a message.
Review URL: http://codereview.chromium.org/1648013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/child_process_host.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/child_process_host.cc b/chrome/browser/child_process_host.cc
index 539670b..0c87021 100644
--- a/chrome/browser/child_process_host.cc
+++ b/chrome/browser/child_process_host.cc
@@ -219,9 +219,10 @@ void ChildProcessHost::ListenerHook::OnMessageReceived(
bool msg_is_ok = true;
bool handled = false;
- if (host_->resource_dispatcher_host_)
- host_->resource_dispatcher_host_->OnMessageReceived(
+ if (host_->resource_dispatcher_host_) {
+ handled = host_->resource_dispatcher_host_->OnMessageReceived(
msg, host_, &msg_is_ok);
+ }
if (!handled) {
if (msg.type() == PluginProcessHostMsg_ShutdownRequest::ID) {