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

Unified Diff: ash/test/test_system_tray_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: shutdown_allowed => reboot_on_shutdown 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: ash/test/test_system_tray_delegate.cc
diff --git a/ash/test/test_system_tray_delegate.cc b/ash/test/test_system_tray_delegate.cc
index 60fb4b31e1fc4fc81fba6b930baad00985792c7b..67f17462b753c990ca2e5cb62283156918a28de9 100644
--- a/ash/test/test_system_tray_delegate.cc
+++ b/ash/test/test_system_tray_delegate.cc
@@ -94,6 +94,10 @@ bool TestSystemTrayDelegate::GetSessionLengthLimit(
return session_length_limit_set_;
}
+void TestSystemTrayDelegate::Restart() {
+ base::MessageLoop::current()->Quit();
+}
+
void TestSystemTrayDelegate::ShutDown() {
base::MessageLoop::current()->Quit();
}

Powered by Google App Engine
This is Rietveld 408576698