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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« content/renderer/render_widget.cc ('K') | « ui/gl/gl_surface_glx.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index b0476986f08247393038f87e0db6b32f71ce2940..627010420029f3014b3a0519abf453dce32444b0 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -2428,12 +2428,8 @@ LRESULT HWNDMessageHandler::OnTouchEvent(UINT message,
if (touch_event_type != ui::ET_UNKNOWN) {
base::TimeTicks now;
// input[i].dwTime doesn't necessarily relate to the system time at all,
- // so use base::TimeTicks::HighResNow() if possible, or
- // base::TimeTicks::Now() otherwise.
- if (base::TimeTicks::IsHighResNowFastAndReliable())
- now = base::TimeTicks::HighResNow();
- else
- now = base::TimeTicks::Now();
+ // so use base::TimeTicks::Now()
+ now = base::TimeTicks::Now();
miu 2015/01/21 23:52:51 nit/clean-up: Remove the declaration (3 lines abov
charliea_google.com 2015/01/22 15:20:46 Done.
ui::TouchEvent event(touch_event_type,
gfx::Point(point.x, point.y),
id_generator_.GetGeneratedID(input[i].dwID),
« content/renderer/render_widget.cc ('K') | « ui/gl/gl_surface_glx.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698