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

Unified Diff: ash/wm/lock_state_controller.h

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/test/test_session_state_animator.cc ('k') | ash/wm/lock_state_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/lock_state_controller.h
diff --git a/ash/wm/lock_state_controller.h b/ash/wm/lock_state_controller.h
index aa4530c33224c1ad6947118e6eb3d78d66d8080b..214c075ef835243414ce397e52bdaa08b934ac32 100644
--- a/ash/wm/lock_state_controller.h
+++ b/ash/wm/lock_state_controller.h
@@ -112,7 +112,7 @@ class ASH_EXPORT LockStateController : public aura::WindowTreeHostObserver,
// Called when ScreenLocker is ready to close, but not yet destroyed.
// Can be used to display "hiding" animations on unlock.
// |callback| will be called when all animations are done.
- void OnLockScreenHide(base::Closure callback);
+ void OnLockScreenHide(base::OnceClosure callback);
// Sets up the callback that should be called once lock animation is finished.
// Callback is guaranteed to be called once and then discarded.
@@ -173,7 +173,7 @@ class ASH_EXPORT LockStateController : public aura::WindowTreeHostObserver,
void CancelPreLockAnimation();
void StartPostLockAnimation();
// This method calls |callback| when animation completes.
- void StartUnlockAnimationBeforeUIDestroyed(base::Closure& callback);
+ void StartUnlockAnimationBeforeUIDestroyed(base::OnceClosure callback);
void StartUnlockAnimationAfterUIDestroyed();
// These methods are called when corresponding animation completes.
« no previous file with comments | « ash/test/test_session_state_animator.cc ('k') | ash/wm/lock_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698