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

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

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. Created 4 years 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_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.h b/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
index a29dc9e41e570d387e5185d7056f4b438320988e..fdbfee68a504b30588eac38568dae902aefe9c03 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
@@ -69,6 +69,10 @@ class SystemTrayDelegateChromeOS
~SystemTrayDelegateChromeOS() override;
+ // Access a global pointer to the single instance of the
+ // SystemTrayDelegateChromeOS class.
+ static SystemTrayDelegateChromeOS* Get();
Nico 2016/12/02 01:20:07 I think we usually call these "instance()": https:
Greg K 2016/12/03 00:05:42 Done.
+
void InitializeOnAdapterReady(
scoped_refptr<device::BluetoothAdapter> adapter);
@@ -123,6 +127,11 @@ class SystemTrayDelegateChromeOS
void UserChangedChildStatus(user_manager::User* user) override;
+ // This notifies the system that a flash update is now available, and so the
+ // user should reboot.
+ void SetFlashUpdateAvailable();
+ bool GetFlashUpdateAvailable();
+
private:
ash::SystemTrayNotifier* GetSystemTrayNotifier();
@@ -235,6 +244,7 @@ class SystemTrayDelegateChromeOS
std::string enterprise_realm_;
bool should_run_bluetooth_discovery_ = false;
bool session_started_ = false;
+ bool flash_update_available_ = false;
scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_;
std::unique_ptr<device::BluetoothDiscoverySession>

Powered by Google App Engine
This is Rietveld 408576698