Index: chrome/browser/sync/glue/ui_model_worker_unittest.cc |
diff --git a/chrome/browser/sync/glue/ui_model_worker_unittest.cc b/chrome/browser/sync/glue/ui_model_worker_unittest.cc |
index 6c20e822e89a7732d2c2b76040964f95d61fcb06..a2e6e1c46f10dab86cb2d26cf69fbd1bc064daf5 100644 |
--- a/chrome/browser/sync/glue/ui_model_worker_unittest.cc |
+++ b/chrome/browser/sync/glue/ui_model_worker_unittest.cc |
@@ -5,9 +5,10 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
#include "base/callback.h" |
+#include "base/location.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/thread.h" |
#include "chrome/browser/sync/glue/ui_model_worker.h" |
@@ -88,7 +89,8 @@ TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) { |
scoped_ptr<UIModelWorkerVisitor> v( |
new UIModelWorkerVisitor(&v_was_run, true)); |
- syncer_thread()->message_loop()->PostTask(FROM_HERE, |
+ syncer_thread()->task_runner()->PostTask( |
+ FROM_HERE, |
base::Bind(&Syncer::SyncShare, base::Unretained(syncer()), v.get())); |
// We are on the UI thread, so run our loop to process the |