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

Unified Diff: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Add MediaRouterUIService (KeyedService) Created 4 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
Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
index 0a16760303d20f3a9cd0cd39e3de8c83d9d39aa2..1dfe7075df73c230c5c82b6cafd9c3bb97235f5a 100644
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
@@ -138,6 +138,13 @@
#include "chrome/browser/printing/cloud_print/privet_notifications_factory.h"
#endif
+#if defined(ENABLE_MEDIA_ROUTER)
+#include "chrome/browser/media/router/media_router_factory.h"
+#if !defined(OS_ANDROID)
+#include "chrome/browser/media/router/media_router_ui_service_factory.h"
+#endif
+#endif
+
namespace chrome {
void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) {
@@ -263,6 +270,12 @@ EnsureBrowserContextKeyedServiceFactoriesBuilt() {
->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory));
#endif
#endif
+#if defined(ENABLE_MEDIA_ROUTER)
+ media_router::MediaRouterFactory::GetInstance();
+#if !defined(OS_ANDROID)
+ media_router::MediaRouterUIServiceFactory::GetInstance();
+#endif
+#endif // defined(ENABLE_MEDIA_ROUTER)
#if !defined(OS_ANDROID)
MediaGalleriesPreferencesFactory::GetInstance();
NTPResourceCacheFactory::GetInstance();

Powered by Google App Engine
This is Rietveld 408576698