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

Unified Diff: chrome/browser/media/router/media_router_factory.cc

Issue 1911183002: [Media Router] Implement an internal Media Routes observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge & android build Created 4 years, 8 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
Index: chrome/browser/media/router/media_router_factory.cc
diff --git a/chrome/browser/media/router/media_router_factory.cc b/chrome/browser/media/router/media_router_factory.cc
index 78cbf1844762c3e2463eb545133d93c487c841a3..db43e549737a6f1e142dd9d0c2dfe9034a5c42ff 100644
--- a/chrome/browser/media/router/media_router_factory.cc
+++ b/chrome/browser/media/router/media_router_factory.cc
@@ -69,11 +69,15 @@ content::BrowserContext* MediaRouterFactory::GetBrowserContextToUse(
KeyedService* MediaRouterFactory::BuildServiceInstanceFor(
BrowserContext* context) const {
+ MediaRouterBase* media_router = nullptr;
#if defined(OS_ANDROID)
- return new MediaRouterAndroid(context);
+ media_router = new MediaRouterAndroid(context);
#else
- return new MediaRouterMojoImpl(extensions::ProcessManager::Get(context));
+ media_router =
+ new MediaRouterMojoImpl(extensions::ProcessManager::Get(context));
#endif
+ media_router->Initialize();
+ return media_router;
}
} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/media_router_base.cc ('k') | chrome/browser/media/router/mojo/media_router.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698