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

Unified Diff: ash/common/system/tray/system_tray_delegate.h

Issue 2497123002: chromeos: Move device shutdown handling out of chrome into ash (Closed)
Patch Set: rebase Created 4 years, 1 month 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/common/system/tiles/tray_tiles.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray_delegate.h
diff --git a/ash/common/system/tray/system_tray_delegate.h b/ash/common/system/tray/system_tray_delegate.h
index 61ff9b64a00003749c9f0f612de348b1fab887f3..339e95d0b4e1928ce1cff244a812e22170042cac 100644
--- a/ash/common/system/tray/system_tray_delegate.h
+++ b/ash/common/system/tray/system_tray_delegate.h
@@ -32,7 +32,6 @@ struct IMEInfo;
struct IMEPropertyInfo;
class CustodianInfoTrayObserver;
-class ShutdownPolicyObserver;
class SystemTray;
class SystemTrayItem;
@@ -76,8 +75,6 @@ class CastConfigDelegate;
class NetworkingConfigDelegate;
class VPNDelegate;
-using RebootOnShutdownCallback = base::Callback<void(bool)>;
-
// SystemTrayDelegate is intended for delegating tasks in the System Tray to the
// application (e.g. Chrome). These tasks should be limited to application
// (browser) specific tasks. For non application specific tasks, where possible,
@@ -223,18 +220,6 @@ class ASH_EXPORT SystemTrayDelegate {
virtual void RemoveCustodianInfoTrayObserver(
CustodianInfoTrayObserver* observer);
- // Adds an observer whose |OnShutdownPolicyChanged| function is called when
- // the |DeviceRebootOnShutdown| policy changes. If this policy is set to
- // true, a device cannot be shut down anymore but only rebooted.
- virtual void AddShutdownPolicyObserver(ShutdownPolicyObserver* observer);
-
- virtual void RemoveShutdownPolicyObserver(ShutdownPolicyObserver* observer);
-
- // Determines whether the device is automatically rebooted when shut down as
- // specified by the device policy |DeviceRebootOnShutdown|. This function
- // asynchronously calls |callback| once a trusted policy becomes available.
- virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback);
-
// Returns VPNDelegate. May return nullptr.
virtual VPNDelegate* GetVPNDelegate() const;
« no previous file with comments | « ash/common/system/tiles/tray_tiles.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698