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

Unified Diff: chrome_frame/test/test_server.cc

Issue 10019015: Update uses of TimeDelta in chrome_frame/*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Another rebase onto master. Created 8 years, 8 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 | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | chrome_frame/test/test_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/test_server.cc
diff --git a/chrome_frame/test/test_server.cc b/chrome_frame/test/test_server.cc
index db5be8d891de50e45f6c97f5fe26340af0467af6..ea4923ee0b0cef3641dfe4e5a81a71d52886e610 100644
--- a/chrome_frame/test/test_server.cc
+++ b/chrome_frame/test/test_server.cc
@@ -338,7 +338,7 @@ void ConfigurableConnection::SendChunk() {
if (cur_pos_ < size) {
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&ConfigurableConnection::SendChunk, this),
- options_.timeout_);
+ base::TimeDelta::FromMilliseconds(options_.timeout_));
} else {
socket_ = 0; // close the connection.
}
@@ -394,7 +394,7 @@ void ConfigurableConnection::SendWithOptions(const std::string& headers,
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&ConfigurableConnection::SendChunk, this),
- options.timeout_);
+ base::TimeDelta::FromMilliseconds(options.timeout_));
}
} // namespace test_server
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | chrome_frame/test/test_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698