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

Unified Diff: ash/system/tray/system_tray_notifier.cc

Issue 2933923002: Remove update icon after user confirms download (Closed)
Patch Set: Apply fix to patch set 2 Created 3 years, 6 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/tray/system_tray_notifier.h ('k') | ash/system/update/tray_update.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index 661c9f63cb921d236e155c5b0837ca9b5d55cd96..4f76c26105d07f52ddd93d0963be3691704d86e0 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -17,6 +17,7 @@
#include "ash/system/session/logout_button_observer.h"
#include "ash/system/status_area_focus_observer.h"
#include "ash/system/tray_tracing.h"
+#include "ash/system/update/update_observer.h"
#include "ash/system/virtual_keyboard/virtual_keyboard_observer.h"
namespace ash {
@@ -256,6 +257,19 @@ void SystemTrayNotifier::NotifyTracingModeChanged(bool value) {
observer.OnTracingModeChanged(value);
}
+void SystemTrayNotifier::AddUpdateObserver(UpdateObserver* observer) {
+ update_observers_.AddObserver(observer);
+}
+
+void SystemTrayNotifier::RemoveUpdateObserver(UpdateObserver* observer) {
+ update_observers_.RemoveObserver(observer);
+}
+
+void SystemTrayNotifier::NotifyUpdateOverCellularTargetSet(bool success) {
+ for (auto& observer : update_observers_)
+ observer.OnUpdateOverCellularTargetSet(success);
+}
+
void SystemTrayNotifier::AddVirtualKeyboardObserver(
VirtualKeyboardObserver* observer) {
virtual_keyboard_observers_.AddObserver(observer);
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/system/update/tray_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698