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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 1298473004: [Chromecast] Moves persistent UMA client ID handling to common code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: GN updates, initialize pointer to nullptr Created 5 years, 4 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 | « chromecast/browser/cast_content_browser_client.h ('k') | chromecast/browser/metrics/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 96a06fe5780d3b23000ad5a1a8603ebec6d448d8..1dc6b81154811202d0be04f11adc6d3385b31ddf 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -95,11 +95,21 @@ void CastContentBrowserClient::ProcessExiting() {
FROM_HERE, base::Bind(&media::CastMediaShlib::Finalize));
}
+void CastContentBrowserClient::SetMetricsClientId(
+ const std::string& client_id) {
+}
+
+void CastContentBrowserClient::RegisterMetricsProviders(
+ ::metrics::MetricsService* metrics_service) {
+}
+
content::BrowserMainParts* CastContentBrowserClient::CreateBrowserMainParts(
const content::MainFunctionParams& parameters) {
- return new CastBrowserMainParts(parameters,
- url_request_context_factory_.get(),
- CreateAudioManagerFactory());
+ content::BrowserMainParts* parts = new CastBrowserMainParts(
+ parameters, url_request_context_factory_.get(),
+ CreateAudioManagerFactory());
+ CastBrowserProcess::GetInstance()->SetCastContentBrowserClient(this);
+ return parts;
}
void CastContentBrowserClient::RenderProcessWillLaunch(
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | chromecast/browser/metrics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698