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

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

Issue 2332693003: Show media router toolbar icon ephemerally for active local routes and issues (Closed)
Patch Set: Address Derek's comment 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/media/router/media_router_ui_service_factory.cc
diff --git a/chrome/browser/media/router/media_router_ui_service_factory.cc b/chrome/browser/media/router/media_router_ui_service_factory.cc
index 73d86b42189171e429b11ecc17c9f581eba0bad4..8771d6e9983a4a4c3d4535b49d303da32bc03313 100644
--- a/chrome/browser/media/router/media_router_ui_service_factory.cc
+++ b/chrome/browser/media/router/media_router_ui_service_factory.cc
@@ -49,4 +49,16 @@ KeyedService* MediaRouterUIServiceFactory::BuildServiceInstanceFor(
return new MediaRouterUIService(Profile::FromBrowserContext(context));
}
+bool MediaRouterUIServiceFactory::ServiceIsCreatedWithBrowserContext() const {
+#if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID)
+ return true;
+#else
+ return false;
+#endif
+}
+
+bool MediaRouterUIServiceFactory::ServiceIsNULLWhileTesting() const {
+ return true;
+}
+
} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698