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

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: rebase 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 78e9648300ca7538a1aa37efb41ca26ceebc23c0..85c8e85c9310879986d18c25bfbfc1a7ea3bab0f 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