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

Unified Diff: chromecast/shell/browser/cast_browser_main_parts.cc

Issue 598303002: Chromecast: adds CastNetworkDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes gyp dep Created 6 years, 3 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/service/cast_service_simple.cc ('k') | chromecast/shell/browser/cast_network_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/shell/browser/cast_browser_main_parts.cc
diff --git a/chromecast/shell/browser/cast_browser_main_parts.cc b/chromecast/shell/browser/cast_browser_main_parts.cc
index 084cc273f4c52cc45c61fc0592ab9e67da0e5c25..fc4f667f03fdebe2b99576f6a64123b8e0f13b3a 100644
--- a/chromecast/shell/browser/cast_browser_main_parts.cc
+++ b/chromecast/shell/browser/cast_browser_main_parts.cc
@@ -101,9 +101,13 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
InitializeWebUI();
- cast_browser_process_->SetCastService(
- CastService::Create(cast_browser_process_->browser_context(),
- url_request_context_factory_->GetSystemGetter()));
+ cast_browser_process_->SetCastService(CastService::Create(
+ cast_browser_process_->browser_context(),
+ url_request_context_factory_->GetSystemGetter(),
+ url_request_context_factory_->app_network_delegate()));
+
+ // Initializing network delegates must happen after Cast service is created.
+ url_request_context_factory_->InitializeNetworkDelegates();
cast_browser_process_->cast_service()->Start();
}
« no previous file with comments | « chromecast/service/cast_service_simple.cc ('k') | chromecast/shell/browser/cast_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698