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

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: 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..4122d9987b4e7ce792d3c159e9a701e1c275c8cf 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();
+ scoped_refptr<base::TickClock> tick_clock) {
+ tick_clock_.swap(tick_clock);
Daniel Erat 2014/10/21 16:30:10 why swap() instead of just assigning it?
rkc 2014/10/21 16:54:42 I was trying to follow this pattern that is being
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