diff options
author | jabdelmalek@google.com <jabdelmalek@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 21:11:46 +0000 |
---|---|---|
committer | jabdelmalek@google.com <jabdelmalek@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 21:11:46 +0000 |
commit | 0fd5900da10af62f21b4a72709676151a167d0a1 (patch) | |
tree | 897333d967a87f621811a7a7a369fb60e27e176d /chrome/browser | |
parent | 596ff54303195463938e117bcf110195c680e474 (diff) | |
download | chromium_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.cc | 5 |
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) { |