Chromium Code Reviews| Index: chrome/common/chrome_switches.cc |
| diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc |
| index 4433b84d48d8bde1d6020b8edb3d35ac087aa932..b3bb0a935d6534b5db00b8b261b7c98a8a500c76 100644 |
| --- a/chrome/common/chrome_switches.cc |
| +++ b/chrome/common/chrome_switches.cc |
| @@ -446,6 +446,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"; |
|
Dan Beam
2015/10/06 16:00:15
line up the =
fhorschig
2015/10/06 16:57:13
Done.
|
| + |
| // Enables Media Router. |
| const char kEnableMediaRouter[] = "enable-media-router"; |
| @@ -1342,6 +1345,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( |