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

Unified Diff: chrome/browser/sync/profile_sync_test_util.cc

Issue 8341117: Converted top-level NewRunnable* to Bind for Sync module (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indenting. Removed trailing whitespace. Created 9 years, 2 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/browser/sync/profile_sync_test_util.cc
diff --git a/chrome/browser/sync/profile_sync_test_util.cc b/chrome/browser/sync/profile_sync_test_util.cc
index dcf41aa19333177e6998c260073a6c55987ccabe..bdbb810018462a72042076bfffd9f1df2fa7dbd9 100644
--- a/chrome/browser/sync/profile_sync_test_util.cc
+++ b/chrome/browser/sync/profile_sync_test_util.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/sync/profile_sync_test_util.h"
+#include "base/bind.h"
#include "base/task.h"
#include "base/threading/thread.h"
@@ -20,7 +21,7 @@ void ThreadNotificationService::Init() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
notification_thread_->message_loop()->PostTask(
FROM_HERE,
- NewRunnableMethod(this, &ThreadNotificationService::InitTask));
+ base::Bind(&ThreadNotificationService::InitTask, this));
done_event_.Wait();
}
@@ -28,8 +29,7 @@ void ThreadNotificationService::TearDown() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
notification_thread_->message_loop()->PostTask(
FROM_HERE,
- NewRunnableMethod(this,
- &ThreadNotificationService::TearDownTask));
+ base::Bind(&ThreadNotificationService::TearDownTask, this));
done_event_.Wait();
}
@@ -60,11 +60,7 @@ void ThreadNotifier::Notify(int type,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
notify_thread_->message_loop()->PostTask(
FROM_HERE,
- NewRunnableMethod(this,
- &ThreadNotifier::NotifyTask,
- type,
- source,
- details));
+ base::Bind(&ThreadNotifier::NotifyTask, this, type, source, details));
done_event_.Wait();
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service_harness.cc ('k') | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698