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

Unified Diff: chrome/common/chrome_switches.cc

Issue 677983004: Power overlay in Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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') | tools/metrics/actions/actions.xml » ('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 2876361ec20ef801a3e0540308cbabd9cc6f05ab..cd047938a0d711dede209f06ec6a7ab0bef9f162 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -514,6 +514,9 @@ const char kEnablePanels[] = "enable-panels";
const char kEnablePluginPlaceholderShadowDom[] =
"enable-plugin-placeholder-shadow-dom";
+// Enables the Power overlay in Settings.
+const char kEnablePowerOverlay[] = "enable-power-overlay";
+
// Enables showing unregistered printers in print preview
const char kEnablePrintPreviewRegisterPromos[] =
"enable-print-preview-register-promos";
@@ -1359,6 +1362,13 @@ bool SettingsWindowEnabled() {
#endif
}
+#if defined(OS_CHROMEOS)
+bool PowerOverlayEnabled() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ ::switches::kEnablePowerOverlay);
+}
+#endif
+
// -----------------------------------------------------------------------------
// DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
//
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698