Early out from SearchIPCRouter::OnMessageReceived
commit9485273e113664984838d32e37ddc71d4071e59b
authorjdduke <jdduke@chromium.org>
Wed, 17 Dec 2014 22:31:51 +0000 (17 14:31 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Dec 2014 22:32:12 +0000 (17 22:32 +0000)
treecb4fc45d6d78294a061c1886ff67797d314edc4b
parentbec137502c3f948b02f5efd68c10ddd907a600ca
Early out from SearchIPCRouter::OnMessageReceived

This method performs an |IsRenderedInInstantProcess| query for all
messages received, even if it won't actually handle the provided
message. As there are no guarantees said query is cheap, early out
from the message handler if the message type will not be handled
by the SearchIPCRouter.

BUG=405348

Review URL: https://codereview.chromium.org/788883008

Cr-Commit-Position: refs/heads/master@{#308866}
chrome/browser/ui/search/search_ipc_router.cc
chrome/browser/ui/search/search_ipc_router_unittest.cc