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

Unified Diff: chrome/browser/chromeos/system/automatic_reboot_manager.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
Index: chrome/browser/chromeos/system/automatic_reboot_manager.h
diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager.h b/chrome/browser/chromeos/system/automatic_reboot_manager.h
index 638c9ace6e306fc0a0b25fd80e783fcadcb753ff..b698e1123da1274802d38b1b8ce027038c10da75 100644
--- a/chrome/browser/chromeos/system/automatic_reboot_manager.h
+++ b/chrome/browser/chromeos/system/automatic_reboot_manager.h
@@ -90,7 +90,7 @@ class AutomaticRebootManager : public PowerManagerClient::Observer,
base::TimeTicks update_reboot_needed_time;
};
- explicit AutomaticRebootManager(scoped_ptr<base::TickClock> clock);
+ explicit AutomaticRebootManager(const scoped_refptr<base::TickClock>& clock);
virtual ~AutomaticRebootManager();
void AddObserver(AutomaticRebootManagerObserver* observer);
@@ -137,7 +137,7 @@ class AutomaticRebootManager : public PowerManagerClient::Observer,
void Reboot();
// A clock that can be mocked in tests to fast-forward time.
- scoped_ptr<base::TickClock> clock_;
+ scoped_refptr<base::TickClock> clock_;
PrefChangeRegistrar local_state_registrar_;
« no previous file with comments | « chrome/browser/browser_process_platform_part_chromeos.cc ('k') | chrome/browser/chromeos/system/automatic_reboot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698