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

Unified Diff: chrome/browser/ui/ash/system_tray_client.h

Issue 2882933002: Add update available icon in system tray (Closed)
Patch Set: Delay RequestUpdateCheck until the aboutChromeOS page is loaded Created 3 years, 7 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
Index: chrome/browser/ui/ash/system_tray_client.h
diff --git a/chrome/browser/ui/ash/system_tray_client.h b/chrome/browser/ui/ash/system_tray_client.h
index 355d046f6c3651240b481be4a4580ea01de37984..c21559abd1f1b2c301c53581828475e6383bd3bb 100644
--- a/chrome/browser/ui/ash/system_tray_client.h
+++ b/chrome/browser/ui/ash/system_tray_client.h
@@ -8,9 +8,11 @@
#include "ash/public/interfaces/system_tray.mojom.h"
#include "base/macros.h"
#include "chrome/browser/chromeos/system/system_clock_observer.h"
+#include "chromeos/dbus/update_engine_client.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+
#include "mojo/public/cpp/bindings/binding.h"
namespace ash {
@@ -64,6 +66,7 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
bool paired,
bool connected) override;
void ShowDateSettings() override;
+ void ShowAboutChromeOS() override;
void ShowSetTimeDialog() override;
void ShowDisplaySettings() override;
void ShowPowerSettings() override;
@@ -83,6 +86,7 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
void ShowProxySettings() override;
void SignOut() override;
void RequestRestartForUpdate() override;
+ void ScheduleRequestUpdateCheck() override;
private:
// Helper function shared by ShowNetworkSettings() and ShowNetworkConfigure().
@@ -92,6 +96,9 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
// Requests that ash show the update available icon.
void HandleUpdateAvailable();
+ // Requests that ash show the update over cellular available icon.
+ void HandleUpdateOverCellularAvailable();
+
// chromeos::system::SystemClockObserver:
void OnSystemClockChanged(chromeos::system::SystemClock* clock) override;
@@ -101,6 +108,12 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
void UpdateEnterpriseDomain();
+ // Attempts to check for update;
+ void RequestUpdateCheck();
+
+ void OnRequestUpdateCheck(
+ chromeos::UpdateEngineClient::UpdateCheckResult result);
+
// content::NotificationObserver:
void Observe(int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698