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. |
// |