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

Unified Diff: chrome/browser/chromeos/system/automatic_reboot_manager.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: chrome/browser/chromeos/system/automatic_reboot_manager.cc
diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager.cc b/chrome/browser/chromeos/system/automatic_reboot_manager.cc
index 1d91ec13f6306c791c5b3a83baf20e7e85bbc5d0..e56a3aabe9027528771d2571badd332c480f14f3 100644
--- a/chrome/browser/chromeos/system/automatic_reboot_manager.cc
+++ b/chrome/browser/chromeos/system/automatic_reboot_manager.cc
@@ -148,8 +148,8 @@ AutomaticRebootManager::SystemEventTimes::SystemEventTimes(
}
AutomaticRebootManager::AutomaticRebootManager(
- scoped_ptr<base::TickClock> clock)
- : clock_(clock.Pass()),
+ const scoped_refptr<base::TickClock>& clock)
+ : clock_(clock),
have_boot_time_(false),
have_update_reboot_needed_time_(false),
reboot_requested_(false),

Powered by Google App Engine
This is Rietveld 408576698