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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.h

Issue 10019015: Update uses of TimeDelta in chrome_frame/*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
Index: chrome_frame/test/chrome_frame_test_utils.h
diff --git a/chrome_frame/test/chrome_frame_test_utils.h b/chrome_frame/test/chrome_frame_test_utils.h
index 8affbd56431ce148784bc06078eb508b7923ff18..7ceb8267c98339aa34a3e23d218cf6474fb0ca37 100644
--- a/chrome_frame/test/chrome_frame_test_utils.h
+++ b/chrome_frame/test/chrome_frame_test_utils.h
@@ -204,7 +204,8 @@ class TimedMsgLoop {
void PostDelayedTask(const tracked_objects::Location& from_here,
const base::Closure& task, int64 delay_ms) {
- loop_.PostDelayedTask(from_here, task, delay_ms);
+ loop_.PostDelayedTask(
+ from_here, task, base::TimeDelta::FromMilliseconds(delay_ms));
}
void Quit() {
@@ -213,8 +214,8 @@ class TimedMsgLoop {
void QuitAfter(int seconds) {
quit_loop_invoked_ = true;
- loop_.PostDelayedTask(
- FROM_HERE, MessageLoop::QuitClosure(), 1000 * seconds);
+ loop_.PostDelayedTask(FROM_HERE,
+ MessageLoop::QuitClosure(), base::TimeDelta::FromSeconds(seconds));
}
bool WasTimedOut() const {

Powered by Google App Engine
This is Rietveld 408576698