diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-01 17:07:06 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-01 17:07:06 +0000 |
commit | ba780c1bb6637c1ee4880129aee2e85987a8e2d3 (patch) | |
tree | a6b14800270e1230d0300ec0399bd1683cfaaf11 /content/shell/browser/shell_content_browser_client.cc | |
parent | f1fda807df0c92c3dc19287bf14f435d0ca4ca91 (diff) | |
download | chromium_src-ba780c1bb6637c1ee4880129aee2e85987a8e2d3.zip chromium_src-ba780c1bb6637c1ee4880129aee2e85987a8e2d3.tar.gz chromium_src-ba780c1bb6637c1ee4880129aee2e85987a8e2d3.tar.bz2 |
Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide the OnMessageReceived which shouldn't be overridden from child classes, and also avoid the pattern of requiring an overridden method to have to call to the base class.
R=scherkus@chromium.org, scherkus
Review URL: https://codereview.chromium.org/24514003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/browser/shell_content_browser_client.cc')
-rw-r--r-- | content/shell/browser/shell_content_browser_client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc index 040fce8..0facfaec 100644 --- a/content/shell/browser/shell_content_browser_client.cc +++ b/content/shell/browser/shell_content_browser_client.cc @@ -79,7 +79,7 @@ void ShellContentBrowserClient::RenderProcessHostCreated( RenderProcessHost* host) { if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) return; - host->GetChannel()->AddFilter(new ShellMessageFilter( + host->AddFilter(new ShellMessageFilter( host->GetID(), BrowserContext::GetDefaultStoragePartition(browser_context()) ->GetDatabaseTracker(), |