diff options
author | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-24 08:16:46 +0000 |
---|---|---|
committer | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-24 08:16:46 +0000 |
commit | 2c9847a108f297b51f1c9823d092d7959f80bf3f (patch) | |
tree | f330022dd3362d6c96fd51c2c4b73dc616e32ba2 /chrome_frame/chrome_frame_automation.cc | |
parent | 8ebaa1e52bcad26bbeb32af1e12ab54927a0d986 (diff) | |
download | chromium_src-2c9847a108f297b51f1c9823d092d7959f80bf3f.zip chromium_src-2c9847a108f297b51f1c9823d092d7959f80bf3f.tar.gz chromium_src-2c9847a108f297b51f1c9823d092d7959f80bf3f.tar.bz2 |
Revert 70141 - Make a few more places use bool for OnMessageReceived.
TBR=brettw
Review URL: http://codereview.chromium.org/6005006
TBR=jam@chromium.org
Review URL: http://codereview.chromium.org/6094002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r-- | chrome_frame/chrome_frame_automation.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc index 887e545..a026669 100644 --- a/chrome_frame/chrome_frame_automation.cc +++ b/chrome_frame/chrome_frame_automation.cc @@ -1168,20 +1168,19 @@ bool ChromeFrameAutomationClient::ProcessUrlRequestMessage(TabProxy* tab, // kind of beings. // By default we marshal the IPC message to the main/GUI thread and from there // we safely invoke chrome_frame_delegate_->OnMessageReceived(msg). -bool ChromeFrameAutomationClient::OnMessageReceived(TabProxy* tab, +void ChromeFrameAutomationClient::OnMessageReceived(TabProxy* tab, const IPC::Message& msg) { DCHECK(tab == tab_.get()); // Quickly process network related messages. if (url_fetcher_ && ProcessUrlRequestMessage(tab, msg, false)) - return true; + return; // Early check to avoid needless marshaling if (chrome_frame_delegate_ == NULL) - return false; + return; PostTask(FROM_HERE, NewRunnableMethod(this, &ChromeFrameAutomationClient::OnMessageReceivedUIThread, msg)); - return true; } void ChromeFrameAutomationClient::OnChannelError(TabProxy* tab) { |