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

Unified Diff: ash/wm/power_button_controller.cc

Issue 10008074: Cancel partial screenshot UI when lock happens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use enum Created 8 years, 8 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 aadedaaaf560328581b7d29dda86497e7a311ce8..3c2ea727bb6dd6232dcbe25cb86c07cd0b706e2a 100644
--- a/ash/wm/power_button_controller.cc
+++ b/ash/wm/power_button_controller.cc
@@ -290,12 +290,12 @@ PowerButtonController::PowerButtonController()
PowerButtonController::~PowerButtonController() {
}
-void PowerButtonController::OnLoginStateChange(bool logged_in, bool is_guest) {
- logged_in_ = logged_in;
- is_guest_ = is_guest;
+void PowerButtonController::OnLoginStateChanged(Shell::LoginStatus status) {
+ logged_in_ = (status != Shell::NOT_LOGGED_IN);
sky 2012/04/18 16:03:31 Can logged_in_ and is_guest_ be converted to Login
Jun Mukai 2012/04/19 06:19:25 Done.
+ is_guest_ = (status == Shell::LOGGED_IN_AS_GUEST);
}
-void PowerButtonController::OnExit() {
+void PowerButtonController::OnAppTerminating() {
// If we hear that Chrome is exiting but didn't request it ourselves, all we
// can really hope for is that we'll have time to clear the screen.
if (!shutting_down_) {
@@ -308,7 +308,7 @@ void PowerButtonController::OnExit() {
}
}
-void PowerButtonController::OnLockStateChange(bool locked) {
+void PowerButtonController::OnLockStateChanged(bool locked) {
if (shutting_down_ || locked_ == locked)
return;

Powered by Google App Engine
This is Rietveld 408576698