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

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

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
Index: ash/system/chromeos/session/logout_confirmation_controller.cc
diff --git a/ash/system/chromeos/session/logout_confirmation_controller.cc b/ash/system/chromeos/session/logout_confirmation_controller.cc
index fdf1cc627c751d59bb5b55777ddcc57463fb2b8a..1bb5326b9ebece21b866dbed4d70d1d90ffd8bbd 100644
--- a/ash/system/chromeos/session/logout_confirmation_controller.cc
+++ b/ash/system/chromeos/session/logout_confirmation_controller.cc
@@ -55,8 +55,8 @@ void LogoutConfirmationController::ConfirmLogout(
}
void LogoutConfirmationController::SetClockForTesting(
- scoped_ptr<base::TickClock> clock) {
- clock_ = clock.Pass();
+ const scoped_refptr<base::TickClock>& clock) {
+ clock_ = clock;
}
void LogoutConfirmationController::OnLockStateChanged(bool locked) {

Powered by Google App Engine
This is Rietveld 408576698