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 bfb73d1f35ab718d9f2fbf1f7285c0b5bd2f05ca..d5db350a9cfc990dff8b72b23545c53f0bfe8e83 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -41,7 +41,6 @@ |
#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/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" |
@@ -55,6 +54,7 @@ |
#include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" |
#include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
#include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
+#include "chrome/browser/net_benchmarking_impl.h" |
#include "chrome/browser/notifications/platform_notification_service_impl.h" |
#include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" |
#include "chrome/browser/password_manager/chrome_password_manager_client.h" |
@@ -1036,9 +1036,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) |
@@ -1053,7 +1050,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) |
@@ -1074,6 +1070,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(), |
@@ -2941,6 +2939,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); |