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

Unified Diff: ash/system/chromeos/session/logout_confirmation_controller.h

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y Created 6 years, 2 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 | « no previous file | ash/system/chromeos/session/logout_confirmation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/session/logout_confirmation_controller.h
diff --git a/ash/system/chromeos/session/logout_confirmation_controller.h b/ash/system/chromeos/session/logout_confirmation_controller.h
index e24406933d09ab0626e2860ba3694ac268bd3e5a..84e973cf2eb21d36e2368c8b3f06b5b71fb393ed 100644
--- a/ash/system/chromeos/session/logout_confirmation_controller.h
+++ b/ash/system/chromeos/session/logout_confirmation_controller.h
@@ -40,7 +40,7 @@ class ASH_EXPORT LogoutConfirmationController : public ShellObserver {
// the current dialog's |logout_time_|.
void ConfirmLogout(base::TimeTicks logout_time);
- void SetClockForTesting(scoped_ptr<base::TickClock> clock);
+ void SetClockForTesting(const scoped_refptr<base::TickClock>& clock);
// ShellObserver:
virtual void OnLockStateChanged(bool locked) override;
@@ -54,7 +54,7 @@ class ASH_EXPORT LogoutConfirmationController : public ShellObserver {
LogoutConfirmationDialog* dialog_for_testing() const { return dialog_; }
private:
- scoped_ptr<base::TickClock> clock_;
+ scoped_refptr<base::TickClock> clock_;
base::Closure logout_closure_;
base::TimeTicks logout_time_;
« no previous file with comments | « no previous file | ash/system/chromeos/session/logout_confirmation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698