Chromium Code Reviews| Index: chrome/browser/chrome_content_browser_client.cc |
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
| index b9b8d6659616103667c4bdf92d363b69f4f405ba..c7a1d5668f69d203b0616f495711d44b0f31aa36 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -41,7 +41,7 @@ |
| #include "chrome/browser/budget_service/budget_service_impl.h" |
| #include "chrome/browser/character_encoding.h" |
| #include "chrome/browser/chrome_content_browser_client_parts.h" |
| -#include "chrome/browser/chrome_net_benchmarking_message_filter.h" |
| +#include "chrome/browser/net_benchmarking_impl.h" |
|
Sam McNally
2016/12/08 22:57:46
Resort.
dvallet
2016/12/12 22:04:37
Done
|
| #include "chrome/browser/chrome_quota_permission_context.h" |
| #include "chrome/browser/content_settings/cookie_settings_factory.h" |
| #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| @@ -1031,9 +1031,6 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch( |
| content::RenderProcessHost* host) { |
| int id = host->GetID(); |
| Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
| - net::URLRequestContextGetter* context = |
| - host->GetStoragePartition()->GetURLRequestContext(); |
| - |
| host->AddFilter(new ChromeRenderMessageFilter( |
| id, profile, host->GetStoragePartition()->GetServiceWorkerContext())); |
| #if BUILDFLAG(ENABLE_EXTENSIONS) |
| @@ -1048,7 +1045,6 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch( |
| #if BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
| host->AddFilter(new SpellCheckMessageFilterPlatform(id)); |
| #endif |
| - host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); |
| host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
| host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); |
| #if BUILDFLAG(ENABLE_WEBRTC) |
| @@ -1069,6 +1065,8 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch( |
| #endif |
| #if !defined(DISABLE_NACL) |
| + net::URLRequestContextGetter* context = |
| + host->GetStoragePartition()->GetURLRequestContext(); |
| host->AddFilter(new nacl::NaClHostMessageFilter( |
| id, profile->IsOffTheRecord(), |
| profile->GetPath(), |
| @@ -2927,6 +2925,12 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer( |
| scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = |
| content::BrowserThread::GetTaskRunnerForThread( |
| content::BrowserThread::UI); |
| + Profile* profile = |
| + Profile::FromBrowserContext(render_process_host->GetBrowserContext()); |
| + net::URLRequestContextGetter* context = |
| + render_process_host->GetStoragePartition()->GetURLRequestContext(); |
| + registry->AddInterface( |
| + base::Bind(&NetBenchmarkingImpl::Create, profile, context)); |
| registry->AddInterface( |
| base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), |
| ui_task_runner); |