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

Unified Diff: ash/system/update/tray_update.h

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.cc ('k') | ash/system/update/tray_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/update/tray_update.h
diff --git a/ash/system/update/tray_update.h b/ash/system/update/tray_update.h
index c723d6fc6fafe3973dd941827436f17f9fe63c72..6dedddc0225d81ddb919fb589dcb2a88fce6b8f7 100644
--- a/ash/system/update/tray_update.h
+++ b/ash/system/update/tray_update.h
@@ -7,6 +7,7 @@
#include "ash/ash_export.h"
#include "ash/system/tray/tray_image_item.h"
+#include "ash/system/update/update_observer.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/strings/string16.h"
@@ -26,7 +27,7 @@ enum class UpdateType;
// The system update tray item. The tray icon stays visible once an update
// notification is received. The icon only disappears after a reboot to apply
// the update. Exported for test.
-class ASH_EXPORT TrayUpdate : public TrayImageItem {
+class ASH_EXPORT TrayUpdate : public TrayImageItem, public UpdateObserver {
public:
explicit TrayUpdate(SystemTray* system_tray);
~TrayUpdate() override;
@@ -54,6 +55,9 @@ class ASH_EXPORT TrayUpdate : public TrayImageItem {
views::View* CreateDefaultView(LoginStatus status) override;
void OnDefaultViewDestroyed() override;
+ // Overridden from UpdateObserver.
+ void OnUpdateOverCellularTargetSet(bool success) override;
+
// Expose label information for testing.
views::Label* GetLabelForTesting();
UpdateView* update_view_;
« no previous file with comments | « ash/system/tray/system_tray_notifier.cc ('k') | ash/system/update/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698