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

Unified Diff: ash/wm/power_button_controller.cc

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 months 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/wm/power_button_controller.cc
diff --git a/ash/wm/power_button_controller.cc b/ash/wm/power_button_controller.cc
index 5a26a83cbf113911fd4fb23d6733e46ff880835d..8a8d0e5297f9689288e22492204a3e61ccef9620 100644
--- a/ash/wm/power_button_controller.cc
+++ b/ash/wm/power_button_controller.cc
@@ -82,7 +82,7 @@ void PowerButtonController::OnPowerButtonEvent(
!controller_->LockRequested()) {
controller_->StartLockAnimationAndLockImmediately(false);
} else {
- controller_->RequestShutdown(LockStateController::POWER_OFF);
+ controller_->RequestShutdown();
}
}
} else { // !has_legacy_power_button_
« no previous file with comments | « ash/wm/lock_state_controller_unittest.cc ('k') | chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698