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

Unified Diff: net/websockets/websocket_stream_create_test_base.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 | « net/websockets/websocket_stream.cc ('k') | remoting/host/backoff_timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_stream_create_test_base.cc
diff --git a/net/websockets/websocket_stream_create_test_base.cc b/net/websockets/websocket_stream_create_test_base.cc
index d3b1668ac88267d8430c2e9ca2bcefe78d12ed61..895714ba85c9f743b06c9922d1cf9e656ed01856 100644
--- a/net/websockets/websocket_stream_create_test_base.cc
+++ b/net/websockets/websocket_stream_create_test_base.cc
@@ -123,7 +123,7 @@ void WebSocketStreamCreateTestBase::CreateAndConnectStream(
additional_headers, url_request_context_host_.GetURLRequestContext(),
NetLogWithSource(), std::move(connect_delegate),
timer ? std::move(timer)
- : std::unique_ptr<base::Timer>(new base::Timer(false, false)));
+ : std::unique_ptr<base::Timer>(new base::OneShotTimer));
}
std::vector<HeaderKeyValuePair>
« no previous file with comments | « net/websockets/websocket_stream.cc ('k') | remoting/host/backoff_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698