| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/common/system/chromeos/power/battery_notification.h" | 5 #include "ash/system/power/battery_notification.h" |
| 6 | 6 |
| 7 #include "ash/common/system/chromeos/power/power_status.h" | |
| 8 #include "ash/common/system/system_notifier.h" | |
| 9 #include "ash/resources/grit/ash_resources.h" | 7 #include "ash/resources/grit/ash_resources.h" |
| 10 #include "ash/strings/grit/ash_strings.h" | 8 #include "ash/strings/grit/ash_strings.h" |
| 9 #include "ash/system/power/power_status.h" |
| 10 #include "ash/system/system_notifier.h" |
| 11 #include "base/i18n/message_formatter.h" | 11 #include "base/i18n/message_formatter.h" |
| 12 #include "base/i18n/time_formatting.h" | 12 #include "base/i18n/time_formatting.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "ui/base/l10n/time_format.h" | 16 #include "ui/base/l10n/time_format.h" |
| 17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
| 18 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
| 19 #include "ui/message_center/message_center.h" | 19 #include "ui/message_center/message_center.h" |
| 20 #include "ui/message_center/notification.h" | 20 #include "ui/message_center/notification.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 void BatteryNotification::Update( | 103 void BatteryNotification::Update( |
| 104 TrayPower::NotificationState notification_state) { | 104 TrayPower::NotificationState notification_state) { |
| 105 if (message_center_->FindVisibleNotificationById(kBatteryNotificationId)) { | 105 if (message_center_->FindVisibleNotificationById(kBatteryNotificationId)) { |
| 106 message_center_->UpdateNotification(kBatteryNotificationId, | 106 message_center_->UpdateNotification(kBatteryNotificationId, |
| 107 CreateNotification(notification_state)); | 107 CreateNotification(notification_state)); |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace ash | 111 } // namespace ash |
| OLD | NEW |