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

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

Issue 776093004: Add device policy to disallow shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modifications suggested by stevenjb Created 6 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.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index a02c7c7da1c1d48ab445ed3f800b488c3d2ea877..de78c6591b98c0e1a0b8039a68f46389ded30bfb 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -592,7 +592,8 @@ void SystemTrayDelegateChromeOS::ShowUserLogin() {
}
void SystemTrayDelegateChromeOS::ShutDown() {
- ash::Shell::GetInstance()->lock_state_controller()->RequestShutdown();
+ ash::Shell::GetInstance()->lock_state_controller()->RequestShutdown(
+ ash::LockStateController::POWER_OFF);
}
void SystemTrayDelegateChromeOS::SignOut() {

Powered by Google App Engine
This is Rietveld 408576698