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

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, 6 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 79edfbc8f7390cfc55c7efb89c7dacafd1ac8c83..b4a2ba5a4a10ad734e04bc0fa5a224ea8c98307f 100644
--- a/content/browser/media/capture/cursor_renderer_aura.cc
+++ b/content/browser/media/capture/cursor_renderer_aura.cc
@@ -120,7 +120,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;
« no previous file with comments | « content/browser/media/capture/cursor_renderer_aura.h ('k') | content/browser/media/capture/cursor_renderer_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698