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

Unified Diff: remoting/host/security_key/security_key_socket.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.cc ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/security_key_socket.cc
diff --git a/remoting/host/security_key/security_key_socket.cc b/remoting/host/security_key/security_key_socket.cc
index 569e53cf12e4d9430e7fdfd8134d936ef5a6613e..232c0e4d23766c6a87ddf692936f15176afccd3c 100644
--- a/remoting/host/security_key/security_key_socket.cc
+++ b/remoting/host/security_key/security_key_socket.cc
@@ -31,7 +31,7 @@ SecurityKeySocket::SecurityKeySocket(std::unique_ptr<net::StreamSocket> socket,
const base::Closure& timeout_callback)
: socket_(std::move(socket)),
read_buffer_(new net::IOBufferWithSize(kRequestReadBufferLength)) {
- timer_.reset(new base::Timer(false, false));
+ timer_.reset(new base::OneShotTimer);
timer_->Start(FROM_HERE, timeout, timeout_callback);
}
« no previous file with comments | « remoting/host/mouse_shape_pump.cc ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698