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 087a4d25c93db6bece1e5de9521328ceda6754b7..36a6cfc67c8b88a837fd550a5baec1ebcd4d0ec6 100644 |
--- a/chrome/browser/sync/profile_sync_test_util.cc |
+++ b/chrome/browser/sync/profile_sync_test_util.cc |
@@ -5,6 +5,8 @@ |
#include "chrome/browser/sync/profile_sync_test_util.h" |
#include "base/bind.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/threading/thread.h" |
using content::BrowserThread; |
@@ -28,7 +30,7 @@ void ThreadNotifier::Notify(int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
- notify_thread_->message_loop()->PostTask( |
+ notify_thread_->task_runner()->PostTask( |
FROM_HERE, |
base::Bind(&ThreadNotifier::NotifyTask, this, type, source, details)); |
done_event_.Wait(); |