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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 940163005: Initialize metrics service after cast service is initialized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index 100bea2f63cfe28e60602c8dd40958045d8294b2..7c7b6c6e81ebd784f85ddb7759341d6a0c8baaaa 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -229,15 +229,13 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
cast_browser_process_->pref_service(),
cast_browser_process_->metrics_service_client(),
url_request_context_factory_->GetSystemGetter()));
+ cast_browser_process_->cast_service()->Initialize();
+ // Initializing metrics service and network delegates must happen after cast
+ // service is intialized because CastMetricsServiceClient and
+ // CastNetworkDelegate may use components initialized by cast service.
lcwu1 2015/02/19 23:20:29 nit: remove 'may' because we know for a fact that
gunsch 2015/02/19 23:21:46 Doesn't that depend on the particular CastService
byungchul 2015/02/19 23:29:01 May be possible if sys info supports Initialized()
cast_browser_process_->metrics_service_client()
->Initialize(cast_browser_process_->cast_service());
-
- cast_browser_process_->cast_service()->Initialize();
-
- // Initializing network delegates must happen after cast service is
- // initialized because CastNetworkDelegate may use components initialized by
- // cast service.
url_request_context_factory_->InitializeNetworkDelegates();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698