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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.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 | « chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | chromeos/dbus/update_engine_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 67648c4cd8ec5af24657641c260d6fc4ac77a25f..71087e0ddce4552e57e489b71ccddd518c85a8fd 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -46,6 +46,7 @@
#include "chrome/common/features.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
+#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/login/login_state.h"
#include "chromeos/network/portal_detector/network_portal_detector.h"
#include "components/google/core/browser/google_util.h"
@@ -119,6 +120,8 @@ void SystemTrayDelegateChromeOS::Initialize() {
ui::ime::InputMethodMenuManager::GetInstance()->AddObserver(this);
BrowserList::AddObserver(this);
+
+ DBusThreadManager::Get()->GetUpdateEngineClient()->AddObserver(this);
}
SystemTrayDelegateChromeOS::~SystemTrayDelegateChromeOS() {
@@ -135,6 +138,9 @@ SystemTrayDelegateChromeOS::~SystemTrayDelegateChromeOS() {
BrowserList::RemoveObserver(this);
StopObservingAppWindowRegistry();
+
+ if (DBusThreadManager::IsInitialized())
+ DBusThreadManager::Get()->GetUpdateEngineClient()->RemoveObserver(this);
}
void SystemTrayDelegateChromeOS::ShowUserLogin() {
@@ -440,6 +446,10 @@ void SystemTrayDelegateChromeOS::ImeMenuItemsChanged(
const std::string& engine_id,
const std::vector<input_method::InputMethodManager::MenuItem>& items) {}
+void SystemTrayDelegateChromeOS::OnUpdateOverCellularTargetSet(bool success) {
+ GetSystemTrayNotifier()->NotifyUpdateOverCellularTargetSet(success);
+}
+
ash::SystemTrayDelegate* CreateSystemTrayDelegate() {
return new SystemTrayDelegateChromeOS();
}
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | chromeos/dbus/update_engine_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698