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

Unified Diff: ash/wm/maximize_mode/maximize_mode_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
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.h ('k') | base/test/simple_test_tick_clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc
index dc78d281d2cb69534b0c687557cf5db7367ef887..42f9a851789c33d8b2460a4a133c0903350a6f31 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
@@ -491,9 +491,9 @@ bool MaximizeModeController::WasLidOpenedRecently() const {
}
void MaximizeModeController::SetTickClockForTest(
- scoped_ptr<base::TickClock> tick_clock) {
- DCHECK(tick_clock_);
- tick_clock_ = tick_clock.Pass();
+ const scoped_refptr<base::TickClock>& tick_clock) {
+ DCHECK(tick_clock_.get() != NULL);
+ tick_clock_ = tick_clock;
}
} // namespace ash
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.h ('k') | base/test/simple_test_tick_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698