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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1219063014: Guard usage of kEnableMediaRouter with ENABLE_MEDIA_ROUTER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 60cafaf3f19fcad85d5daf1a2a20e86d42b8329e..887d07930eb5cd7ed438f803295ded696737d964 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -1334,8 +1334,12 @@ bool MdSettingsEnabled() {
}
bool MediaRouterEnabled() {
+#if defined(ENABLE_MEDIA_ROUTER)
return base::CommandLine::ForCurrentProcess()->HasSwitch(
::switches::kEnableMediaRouter);
+#else
+ return false;
+#endif
}
// Will return true as a default value if the "disable-new-offline-error-page"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698