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

Unified Diff: ash/system/power/tray_power.cc

Issue 10947046: Eliminate kAshNotifyDisabled and SystemNotification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 years, 3 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/ash_switches.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/power/tray_power.cc
diff --git a/ash/system/power/tray_power.cc b/ash/system/power/tray_power.cc
index 816d22aca0d48a72653b2ff814fc6c8d12c7540d..2c04b952536cfdfaa6f703d9d12c125baa2a17a5 100644
--- a/ash/system/power/tray_power.cc
+++ b/ash/system/power/tray_power.cc
@@ -231,13 +231,10 @@ void TrayPower::OnPowerStatusChanged(const PowerSupplyStatus& status) {
if (notification_view_)
notification_view_->UpdatePowerStatus(status);
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshNotifyDisabled)) {
- if (UpdateNotificationState(status))
- ShowNotificationView();
- else if (notification_state_ == NOTIFICATION_NONE)
- HideNotificationView();
- }
+ if (UpdateNotificationState(status))
+ ShowNotificationView();
+ else if (notification_state_ == NOTIFICATION_NONE)
+ HideNotificationView();
}
bool TrayPower::UpdateNotificationState(const PowerSupplyStatus& status) {
« no previous file with comments | « ash/ash_switches.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698