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

Unified Diff: ash/wm/lock_state_controller.cc

Issue 2867673004: Use OnceCallback on Mojo interfaces in //ash (Closed)
Patch Set: count -> container_count Created 3 years, 7 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
« no previous file with comments | « ash/wm/lock_state_controller.h ('k') | ash/wm/session_state_animator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/lock_state_controller.cc
diff --git a/ash/wm/lock_state_controller.cc b/ash/wm/lock_state_controller.cc
index 0b996a177087aef5e2083fbdbf073ca0e4beb8a2..9fb69566d8bf64a871f40935a6c37149b36c28e1 100644
--- a/ash/wm/lock_state_controller.cc
+++ b/ash/wm/lock_state_controller.cc
@@ -176,8 +176,8 @@ void LockStateController::RequestShutdown() {
StartRealShutdownTimer(true);
}
-void LockStateController::OnLockScreenHide(base::Closure callback) {
- StartUnlockAnimationBeforeUIDestroyed(callback);
+void LockStateController::OnLockScreenHide(base::OnceClosure callback) {
+ StartUnlockAnimationBeforeUIDestroyed(std::move(callback));
}
void LockStateController::SetLockScreenDisplayedCallback(
@@ -419,12 +419,12 @@ void LockStateController::StartPostLockAnimation() {
}
void LockStateController::StartUnlockAnimationBeforeUIDestroyed(
- base::Closure& callback) {
+ base::OnceClosure callback) {
VLOG(1) << "StartUnlockAnimationBeforeUIDestroyed";
animator_->StartAnimationWithCallback(
SessionStateAnimator::LOCK_SCREEN_CONTAINERS,
SessionStateAnimator::ANIMATION_LIFT,
- SessionStateAnimator::ANIMATION_SPEED_MOVE_WINDOWS, callback);
+ SessionStateAnimator::ANIMATION_SPEED_MOVE_WINDOWS, std::move(callback));
}
void LockStateController::StartUnlockAnimationAfterUIDestroyed() {
« no previous file with comments | « ash/wm/lock_state_controller.h ('k') | ash/wm/session_state_animator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698