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_; |