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_)); |
} |
} |