diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-05 01:16:33 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-05 01:16:33 +0000 |
commit | 1e2076bea7feaf6f6ee6f43e053054db0a89fc8d (patch) | |
tree | 191fb6f539272d944ecd31a09a0f3b583bae4a69 /remoting/protocol/connection_tester.cc | |
parent | 4557d22bc0b6fe59fb146b08065f91d47d3c9254 (diff) | |
download | chromium_src-1e2076bea7feaf6f6ee6f43e053054db0a89fc8d.zip chromium_src-1e2076bea7feaf6f6ee6f43e053054db0a89fc8d.tar.gz chromium_src-1e2076bea7feaf6f6ee6f43e053054db0a89fc8d.tar.bz2 |
Convert uses of int ms to TimeDelta in jingle and remoting.
R=sergeyu@chromium.org
BUG=108171
Review URL: http://codereview.chromium.org/9572038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_tester.cc')
-rw-r--r-- | remoting/protocol/connection_tester.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/remoting/protocol/connection_tester.cc b/remoting/protocol/connection_tester.cc index 4b0b4ee..f597c11 100644 --- a/remoting/protocol/connection_tester.cc +++ b/remoting/protocol/connection_tester.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -203,8 +203,10 @@ void DatagramConnectionTester::HandleWriteResult(int result) { } else if (result > 0) { EXPECT_EQ(message_size_, result); packets_sent_++; - message_loop_->PostDelayedTask(FROM_HERE, base::Bind( - &DatagramConnectionTester::DoWrite, base::Unretained(this)), delay_ms_); + message_loop_->PostDelayedTask( + FROM_HERE, + base::Bind(&DatagramConnectionTester::DoWrite, base::Unretained(this)), + base::TimeDelta::FromMilliseconds(delay_ms_)); } } |