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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 1327723002: [Chromecast] Raises CastService creation to CastContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: removed unnecessary include 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/BUILD.gn ('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_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index 9aaf7378bff8641c0f0c1efea6f4d9a3882b4d30..908cef1d2e4990dbf779ff4760c0f2d1b7bbae17 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -25,6 +25,7 @@
#include "chromecast/base/metrics/grouped_histogram.h"
#include "chromecast/browser/cast_browser_context.h"
#include "chromecast/browser/cast_browser_process.h"
+#include "chromecast/browser/cast_content_browser_client.h"
#include "chromecast/browser/cast_net_log.h"
#include "chromecast/browser/devtools/remote_debugging_server.h"
#include "chromecast/browser/metrics/cast_metrics_prefs.h"
@@ -334,11 +335,11 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
base::Bind(&media::CastMediaShlib::Initialize, cmd_line->argv()));
::media::InitializeMediaLibrary();
- cast_browser_process_->SetCastService(CastService::Create(
- cast_browser_process_->browser_context(),
- cast_browser_process_->pref_service(),
- cast_browser_process_->metrics_service_client(),
- url_request_context_factory_->GetSystemGetter()));
+ cast_browser_process_->SetCastService(
+ cast_browser_process_->browser_client()->CreateCastService(
+ cast_browser_process_->browser_context(),
+ cast_browser_process_->pref_service(),
+ url_request_context_factory_->GetSystemGetter()));
cast_browser_process_->cast_service()->Initialize();
// Initializing metrics service and network delegates must happen after cast
« no previous file with comments | « chromecast/browser/BUILD.gn ('k') | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698