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 ed4a3794ae0ac7c6506e459f8e14bb68adf28f1e..518958ac10606257a03a39b62701adc3ede7d6f2 100644 |
--- a/chrome_frame/test/chrome_frame_test_utils.h |
+++ b/chrome_frame/test/chrome_frame_test_utils.h |
@@ -190,9 +190,14 @@ class TimedMsgLoop { |
loop_.MessageLoop::Run(); |
} |
- void PostDelayedTask( |
- const tracked_objects::Location& from_here, Task* task, int64 delay_ms) { |
- loop_.PostDelayedTask(from_here, task, delay_ms); |
+ void PostTask(const tracked_objects::Location& from_here, |
+ const base::Closure& task) { |
+ loop_.PostTask(from_here, task); |
+ } |
+ |
+ void PostDelayedTask(const tracked_objects::Location& from_here, |
+ const base::Closure& task, int64 delay_ms) { |
+ loop_.PostDelayedTask(from_here, task, delay_ms); |
} |
void Quit() { |
@@ -201,7 +206,8 @@ class TimedMsgLoop { |
void QuitAfter(int seconds) { |
quit_loop_invoked_ = true; |
- loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask, 1000 * seconds); |
+ loop_.PostDelayedTask( |
+ FROM_HERE, MessageLoop::QuitClosure(), 1000 * seconds); |
} |
bool WasTimedOut() const { |