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

Unified Diff: ash/wm/maximize_mode/maximize_mode_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
Index: ash/wm/maximize_mode/maximize_mode_controller.h
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.h b/ash/wm/maximize_mode/maximize_mode_controller.h
index f96cfd2ca811030754ab973b827913af3f0b3e7e..dff2d46c5927db953437e0c903dc875085e80e16 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.h
+++ b/ash/wm/maximize_mode/maximize_mode_controller.h
@@ -135,7 +135,7 @@ class ASH_EXPORT MaximizeModeController
// Set the TickClock. This is only to be used by tests that need to
// artificially and deterministically control the current time.
- void SetTickClockForTest(scoped_ptr<base::TickClock> tick_clock);
+ void SetTickClockForTest(const scoped_refptr<base::TickClock>& tick_clock);
// Detect hinge rotation from |base| and |lid| accelerometers and
// automatically start / stop maximize mode.
@@ -213,7 +213,7 @@ class ASH_EXPORT MaximizeModeController
base::TimeTicks last_lid_open_time_;
// Source for the current time in base::TimeTicks.
- scoped_ptr<base::TickClock> tick_clock_;
+ scoped_refptr<base::TickClock> tick_clock_;
// Tracks when the lid is closed. Used to prevent entering maximize mode.
bool lid_is_closed_;

Powered by Google App Engine
This is Rietveld 408576698