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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.h

Issue 8555001: base::Bind: Convert chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win-dies. Created 9 years, 1 month 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/automation_client_mock.cc ('k') | chrome_frame/test/chrome_frame_ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('k') | chrome_frame/test/chrome_frame_ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698