Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2022413002: Convert startup_metric_utils to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698