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

Unified Diff: remoting/protocol/connection_tester.cc

Issue 9572038: Convert uses of int ms to TimeDelta in jingle and remoting. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits. 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 | « remoting/jingle_glue/jingle_thread_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_tester.cc
diff --git a/remoting/protocol/connection_tester.cc b/remoting/protocol/connection_tester.cc
index 4b0b4eef596df40f4da2da326b2f550c34b551ce..1ea66022b7ec4b8bca49dff0272972a4cb03b6e8 100644
--- a/remoting/protocol/connection_tester.cc
+++ b/remoting/protocol/connection_tester.cc
@@ -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_));
}
}
« no previous file with comments | « remoting/jingle_glue/jingle_thread_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698