Convert uses of int ms to TimeDelta in jingle and remoting.
[email protected]
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
diff --git a/remoting/protocol/connection_tester.cc b/remoting/protocol/connection_tester.cc
index 4b0b4eef..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 @@
} 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_));
}
}