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

Unified Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11.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 | « ui/display/chromeos/x11/native_display_event_dispatcher_x11.h ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
diff --git a/ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc b/ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
index f5c2e2e929839f74e27b14e0dfde534c39fddf3b..a2142ffaeeddee887746ad9cff445c2baf3b8174 100644
--- a/ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
+++ b/ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
@@ -99,8 +99,8 @@ uint32_t NativeDisplayEventDispatcherX11::DispatchEvent(
}
void NativeDisplayEventDispatcherX11::SetTickClockForTest(
- scoped_ptr<base::TickClock> tick_clock) {
- tick_clock_ = tick_clock.Pass();
+ const scoped_refptr<base::TickClock>& tick_clock) {
+ tick_clock_ = tick_clock;
startup_time_ = tick_clock_->NowTicks();
}
« no previous file with comments | « ui/display/chromeos/x11/native_display_event_dispatcher_x11.h ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698