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

Unified Diff: remoting/host/mouse_shape_pump.cc

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 years, 8 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 | « remoting/host/mouse_shape_pump.h ('k') | remoting/host/security_key/security_key_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/mouse_shape_pump.cc
diff --git a/remoting/host/mouse_shape_pump.cc b/remoting/host/mouse_shape_pump.cc
index f86a30a853a26872a4709e2f9ad8451f8e6252a4..6d992f857e10d682d173c5b43a2d4a30446a3c0f 100644
--- a/remoting/host/mouse_shape_pump.cc
+++ b/remoting/host/mouse_shape_pump.cc
@@ -24,8 +24,7 @@ MouseShapePump::MouseShapePump(
std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
protocol::CursorShapeStub* cursor_shape_stub)
: mouse_cursor_monitor_(std::move(mouse_cursor_monitor)),
- cursor_shape_stub_(cursor_shape_stub),
- capture_timer_(true, true) {
+ cursor_shape_stub_(cursor_shape_stub) {
mouse_cursor_monitor_->Init(this, webrtc::MouseCursorMonitor::SHAPE_ONLY);
capture_timer_.Start(
FROM_HERE, base::TimeDelta::FromMilliseconds(kCursorCaptureIntervalMs),
« no previous file with comments | « remoting/host/mouse_shape_pump.h ('k') | remoting/host/security_key/security_key_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698