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 c94455171d4cfd9eff982e11f99c6a0350ca119b..1d70ca9b92d5cd1308616d3c82e4d6dbb0e4046f 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -130,7 +130,7 @@ |
#include "components/rappor/rappor_utils.h" |
#include "components/security_interstitials/core/ssl_error_ui.h" |
#include "components/signin/core/common/profile_management_switches.h" |
-#include "components/startup_metric_utils/browser/startup_metric_message_filter.h" |
+#include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
#include "components/translate/core/common/translate_switches.h" |
#include "components/url_formatter/url_fixer.h" |
#include "components/variations/variations_associated_data.h" |
@@ -992,7 +992,6 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch( |
DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile); |
host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter( |
data_reduction_proxy_settings)); |
- host->AddFilter(new startup_metric_utils::StartupMetricMessageFilter()); |
host->GetImmediateSender()->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
profile->IsOffTheRecord())); |
@@ -2727,6 +2726,12 @@ bool ChromeContentBrowserClient::ShouldUseWindowsPrefetchArgument() const { |
} |
#endif // defined(OS_WIN) |
+void ChromeContentBrowserClient::RegisterRenderProcessMojoServices( |
+ content::ServiceRegistry* registry) { |
+ registry->AddService( |
+ base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create)); |
+} |
+ |
void ChromeContentBrowserClient::RegisterFrameMojoShellServices( |
content::ServiceRegistry* registry, |
content::RenderFrameHost* render_frame_host) { |