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

Unified Diff: chromecast/browser/cast_browser_process.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_browser_process.h ('k') | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_process.cc
diff --git a/chromecast/browser/cast_browser_process.cc b/chromecast/browser/cast_browser_process.cc
index d3cfbfa9eade8c148a9905c0155d16a19a4a8533..be83d008a9bddf673229495fc425b97d6d269ee1 100644
--- a/chromecast/browser/cast_browser_process.cc
+++ b/chromecast/browser/cast_browser_process.cc
@@ -36,7 +36,8 @@ CastBrowserProcess* CastBrowserProcess::GetInstance() {
}
CastBrowserProcess::CastBrowserProcess()
- : net_log_(nullptr) {
+ : cast_content_browser_client_(nullptr),
+ net_log_(nullptr) {
DCHECK(!g_instance);
g_instance = this;
}
@@ -54,6 +55,12 @@ void CastBrowserProcess::SetBrowserContext(
browser_context_.swap(browser_context);
}
+void CastBrowserProcess::SetCastContentBrowserClient(
+ CastContentBrowserClient* cast_content_browser_client) {
+ DCHECK(!cast_content_browser_client_);
+ cast_content_browser_client_ = cast_content_browser_client;
+}
+
void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) {
DCHECK(!cast_service_);
cast_service_.swap(cast_service);
« no previous file with comments | « chromecast/browser/cast_browser_process.h ('k') | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698