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 9baf8b4286347212aed07ffa9e22901de8c4d5b9..710f5b5b500e9523f2147f14b1cb323231912f7e 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" |
@@ -993,7 +993,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())); |
@@ -2719,6 +2718,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) { |