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

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

Issue 2492063002: chromeos: Simplify ShutdownPolicyHandler
Patch Set: unused typedef 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
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 d29eac0a43601819ab94428082590c24e749d1b4..c769dba89ae2886a4b2493b399cc8613f895e26b 100644
--- a/ash/common/system/tray/system_tray_delegate.h
+++ b/ash/common/system/tray/system_tray_delegate.h
@@ -76,8 +76,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,
@@ -228,8 +226,9 @@ class ASH_EXPORT SystemTrayDelegate {
// 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);
+ // notifies the shutdown policy observers added above once a trusted policy
+ // becomes available.
+ virtual void CheckIfRebootOnShutdown();
// Returns VPNDelegate. May return nullptr.
virtual VPNDelegate* GetVPNDelegate() const;

Powered by Google App Engine
This is Rietveld 408576698