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

Unified Diff: ash/public/interfaces/shutdown.mojom

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/mus/manifest.json ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/shutdown.mojom
diff --git a/ash/public/interfaces/shutdown.mojom b/ash/public/interfaces/shutdown.mojom
index e0060fb039461f7609b7c5550a3bda03675ccdc5..4785e773aef01150f25196e33cad9b539e172e7a 100644
--- a/ash/public/interfaces/shutdown.mojom
+++ b/ash/public/interfaces/shutdown.mojom
@@ -4,13 +4,11 @@
module ash.mojom;
-// Interface implemented by service:content_browser to activate shutdown.
-//
-// TODO(erg): Eventually, when CrosSettings is moved out of chrome into its
-// own process, this client should go away. The code which actually calls
-// shutdown should be moved into ash/, and ash should subscribe to changes
-// in CrosSettings. crbug.com/628792
-interface ShutdownClient {
- // Requests that the system shuts down.
- RequestShutdown();
+// Interface implemented by ash and used by chrome to provide shutdown policy
+// information. Exists because device policy is owned by chrome, not ash.
+interface ShutdownController {
+ // Sets a boolean pref that indicates whether the device automatically reboots
+ // when the user initiates a shutdown via an UI element. Used in enterprise
+ // environments for devices that should not be shut down.
+ SetRebootOnShutdown(bool reboot_on_shutdown);
};
« no previous file with comments | « ash/mus/manifest.json ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698