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

Unified Diff: ash/test/test_lock_state_controller_delegate.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: reduced scope of CL (ash only now, removed webui changes) 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/test/test_lock_state_controller_delegate.cc
diff --git a/ash/test/test_lock_state_controller_delegate.cc b/ash/test/test_lock_state_controller_delegate.cc
index 42a2458846200c32188aef8c8842b31c4ab254e0..8410823f281c89268362dd19e91cad060078a570 100644
--- a/ash/test/test_lock_state_controller_delegate.cc
+++ b/ash/test/test_lock_state_controller_delegate.cc
@@ -9,7 +9,6 @@ namespace test {
TestLockStateControllerDelegate::TestLockStateControllerDelegate()
: num_lock_requests_(0),
- num_restart_requests_(0),
num_shutdown_requests_(0) {
}
@@ -20,11 +19,7 @@ void TestLockStateControllerDelegate::RequestLockScreen() {
++num_lock_requests_;
}
-void TestLockStateControllerDelegate::RequestRestart() {
- ++num_restart_requests_;
-}
-
-void TestLockStateControllerDelegate::RequestShutdown() {
+void TestLockStateControllerDelegate::RequestShutdownOrRestart() {
++num_shutdown_requests_;
}

Powered by Google App Engine
This is Rietveld 408576698