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

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: only create the target startup_metric_utils_win on windows 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698