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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1321713004: Flag for Material Design policy construction page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added flag to historgram. Created 5 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/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index e536eff99f58f1316f6457dca321f2e3cce8501b..9675a80723b17149e19cb22d7b75cb8f7e579ea1 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -452,6 +452,9 @@ const char kEnableMaterialDesignDownloads[] = "enable-md-downloads";
// Enables the Material Design version of chrome://extensions.
const char kEnableMaterialDesignExtensions[] = "enable-md-extensions";
+// Enables the material design for chrome://policy page feature.
bartfab (slow) 2015/09/23 12:57:48 Nit 1: The comments above capitalize Material Desi
fhorschig 2015/09/23 16:18:26 Done.
+const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page";
+
// Enables Media Router.
const char kEnableMediaRouter[] = "enable-media-router";
@@ -1341,6 +1344,11 @@ bool MdExtensionsEnabled() {
::switches::kEnableMaterialDesignExtensions);
}
+bool MdPolicyPageEnabled() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ ::switches::kEnableMaterialDesignPolicyPage);
+}
+
bool MediaRouterEnabled() {
#if defined(ENABLE_MEDIA_ROUTER)
return base::CommandLine::ForCurrentProcess()->HasSwitch(

Powered by Google App Engine
This is Rietveld 408576698