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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 2738583003: [Chromecast] Fix ordering in PreMainMessageLoopRun (Closed)
Patch Set: Address comments Created 3 years, 9 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 | chromecast/browser/url_request_context_factory.cc » ('j') | 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 25bd433d59a8608f5646591b67afffb542b9b524..03260b82a113e6a80a333876c38845b37075d03f 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -437,15 +437,14 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
memory_pressure_monitor_.reset(new CastMemoryPressureMonitor());
#endif // defined(OS_ANDROID)
+ cast_browser_process_->SetNetLog(net_log_.get());
+ url_request_context_factory_->InitializeOnUIThread(net_log_.get());
+
cast_browser_process_->SetConnectivityChecker(ConnectivityChecker::Create(
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO),
url_request_context_factory_->GetSystemGetter()));
- cast_browser_process_->SetNetLog(net_log_.get());
-
- url_request_context_factory_->InitializeOnUIThread(net_log_.get());
-
cast_browser_process_->SetBrowserContext(
base::MakeUnique<CastBrowserContext>(url_request_context_factory_));
cast_browser_process_->SetMetricsServiceClient(
« no previous file with comments | « no previous file | chromecast/browser/url_request_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698