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

Unified Diff: net/curvecp/client_packetizer.cc

Issue 9597005: Revert 124890 - Convert uses of int ms to TimeDelta in chrome/browser and net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/curvecp/client_packetizer.h ('k') | net/disk_cache/stress_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/curvecp/client_packetizer.cc
===================================================================
--- net/curvecp/client_packetizer.cc (revision 124890)
+++ net/curvecp/client_packetizer.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -235,8 +235,7 @@
int ClientPacketizer::DoWaitingCookie() {
next_state_ = WAITING_COOKIE_COMPLETE;
- StartHelloTimer(base::TimeDelta::FromMilliseconds(
- kHelloTimeoutMs[hello_attempts_++]));
+ StartHelloTimer(kHelloTimeoutMs[hello_attempts_++]);
read_buffer_ = new IOBuffer(kMaxPacketLength);
return socket_->Read(read_buffer_, kMaxPacketLength, io_callback_);
@@ -314,11 +313,11 @@
return rv;
}
-void ClientPacketizer::StartHelloTimer(base::TimeDelta delay) {
+void ClientPacketizer::StartHelloTimer(int milliseconds) {
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&ClientPacketizer::OnHelloTimeout, weak_factory_.GetWeakPtr()),
- delay);
+ milliseconds);
}
void ClientPacketizer::RevokeHelloTimer() {
« no previous file with comments | « net/curvecp/client_packetizer.h ('k') | net/disk_cache/stress_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698