Index: ash/ash_switches.cc |
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc |
index cc6445553184e63d404f578051c803981d5408e0..7f9b99b84c1fc038846a9e360d8512bdc6038b61 100644 |
--- a/ash/ash_switches.cc |
+++ b/ash/ash_switches.cc |
@@ -63,6 +63,10 @@ const char kAshDisableUIScaling[] = "ash-disable-ui-scaling"; |
#if defined(OS_CHROMEOS) |
// Disable compositor based mirroring. |
const char kAshDisableSoftwareMirroring[] = "ash-disable-software-mirroring"; |
+ |
+// Disable the notification when a low-power USB charger is connected. |
+const char kAshDisableUsbChargerNotification[] = |
+ "ash-disable-usb-charger-notification"; |
#endif |
// Extend the status tray volume item to allow the user to choose an audio |
@@ -178,5 +182,12 @@ bool UseAlternateShelfLayout() { |
HasSwitch(ash::switches::kAshUseAlternateShelfLayout); |
} |
+#if defined(OS_CHROMEOS) |
+bool UseUsbChargerNotification() { |
+ return !CommandLine::ForCurrentProcess()-> |
+ HasSwitch(ash::switches::kAshDisableUsbChargerNotification); |
+} |
+#endif |
+ |
} // namespace switches |
} // namespace ash |