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

Unified Diff: content/browser/media/capture/cursor_renderer_aura.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
Index: content/browser/media/capture/cursor_renderer_aura.cc
diff --git a/content/browser/media/capture/cursor_renderer_aura.cc b/content/browser/media/capture/cursor_renderer_aura.cc
index 6beceea099f5dc5e1fe7eefe40a007105f10fc99..359de6074cf05c8d4d14f12d2839a1ee8c93afb8 100644
--- a/content/browser/media/capture/cursor_renderer_aura.cc
+++ b/content/browser/media/capture/cursor_renderer_aura.cc
@@ -115,7 +115,7 @@ bool CursorRendererAura::SnapshotCursorState(const gfx::Rect& region_in_frame) {
if (cursor_display_setting_ == kCursorEnabledOnMouseMovement) {
if (cursor_displayed_) {
// Stop displaying cursor if there has been no mouse movement
- base::TimeDelta now = tick_clock_->NowTicks() - base::TimeTicks();
+ base::TimeTicks now = tick_clock_->NowTicks();
if ((now - last_mouse_movement_timestamp_) >
base::TimeDelta::FromSeconds(MAX_IDLE_TIME_SECONDS)) {
cursor_displayed_ = false;

Powered by Google App Engine
This is Rietveld 408576698