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

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: Addressing nits. Created 5 years, 2 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 | « chrome/common/chrome_switches.h ('k') | chrome/common/url_constants.h » ('j') | 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 a0f551e6a93a28802c00f5a4493dcf6f373c46e7..843bbac68cb1f5239d0fa51b67a7794dc1400bdd 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -443,6 +443,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 policy page at chrome://md-policy.
+const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page";
+
// Enables Media Router.
const char kEnableMediaRouter[] = "enable-media-router";
@@ -1348,6 +1351,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(
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698