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

Unified Diff: ash/system/system_notifier.cc

Issue 1014753003: Move low battery notification to Message Center. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « ash/system/system_notifier.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/system_notifier.cc
diff --git a/ash/system/system_notifier.cc b/ash/system/system_notifier.cc
index 6bf6884ee446bcc12ca79f066d610083c3b68390..aedd2be47f7c58adc5621bbb0c0a62f82bab2be1 100644
--- a/ash/system/system_notifier.cc
+++ b/ash/system/system_notifier.cc
@@ -18,16 +18,16 @@ namespace {
// See http://dev.chromium.org/chromium-os/chromiumos-design-docs/
// system-notifications for the reasoning.
const char* kAlwaysShownNotifierIds[] = {
- kNotifierDisplay,
- kNotifierDisplayError,
+ kNotifierBattery,
+ kNotifierDisplay,
+ kNotifierDisplayError,
#if defined(OS_CHROMEOS)
- ui::NetworkStateNotifier::kNotifierNetworkError,
+ ui::NetworkStateNotifier::kNotifierNetworkError,
#endif
- kNotifierPower,
- // Note: Order doesn't matter here, so keep this in alphabetic order, don't
- // just add your stuff at the end!
- NULL
-};
+ kNotifierPower,
+ // Note: Order doesn't matter here, so keep this in alphabetic order, don't
+ // just add your stuff at the end!
+ NULL};
const char* kAshSystemNotifiers[] = {
kNotifierBluetooth,
@@ -66,6 +66,7 @@ bool MatchSystemNotifierId(const message_center::NotifierId& notifier_id,
} // namespace
+const char kNotifierBattery[] = "ash.battery";
const char kNotifierBluetooth[] = "ash.bluetooth";
const char kNotifierDisplay[] = "ash.display";
const char kNotifierDisplayError[] = "ash.display.error";
« no previous file with comments | « ash/system/system_notifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698