| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module ash.mojom; | 5 module ash.mojom; |
| 6 | 6 |
| 7 // Interface implemented by service:content_browser to activate shutdown. | 7 // Interface implemented by ash and used by chrome to provide shutdown policy |
| 8 // | 8 // information. Exists because device policy is owned by chrome, not ash. |
| 9 // TODO(erg): Eventually, when CrosSettings is moved out of chrome into its | 9 interface ShutdownController { |
| 10 // own process, this client should go away. The code which actually calls | 10 // Sets a boolean pref that indicates whether the device automatically reboots |
| 11 // shutdown should be moved into ash/, and ash should subscribe to changes | 11 // when the user initiates a shutdown via an UI element. Used in enterprise |
| 12 // in CrosSettings. crbug.com/628792 | 12 // environments for devices that should not be shut down. |
| 13 interface ShutdownClient { | 13 SetRebootOnShutdown(bool reboot_on_shutdown); |
| 14 // Requests that the system shuts down. | |
| 15 RequestShutdown(); | |
| 16 }; | 14 }; |
| OLD | NEW |