Index: components/sync_driver/ui_data_type_controller.cc |
diff --git a/components/sync_driver/ui_data_type_controller.cc b/components/sync_driver/ui_data_type_controller.cc |
index 16d855c50dc8aa5581481a719f38a083c2e702e7..0f5093fa00072eb900d648e47d4fe424ae27af52 100644 |
--- a/components/sync_driver/ui_data_type_controller.cc |
+++ b/components/sync_driver/ui_data_type_controller.cc |
@@ -7,6 +7,7 @@ |
#include "base/logging.h" |
#include "base/memory/weak_ptr.h" |
#include "base/profiler/scoped_tracker.h" |
+#include "base/thread_task_runner_handle.h" |
#include "components/sync_driver/generic_change_processor_factory.h" |
#include "components/sync_driver/shared_change_processor_ref.h" |
#include "sync/api/sync_error.h" |
@@ -17,7 +18,7 @@ |
namespace sync_driver { |
UIDataTypeController::UIDataTypeController() |
- : DataTypeController(base::MessageLoopProxy::current(), |
+ : DataTypeController(base::ThreadTaskRunnerHandle::Get(), |
base::Closure()), |
sync_factory_(NULL), |
state_(NOT_RUNNING), |
@@ -25,7 +26,7 @@ UIDataTypeController::UIDataTypeController() |
} |
UIDataTypeController::UIDataTypeController( |
- scoped_refptr<base::MessageLoopProxy> ui_thread, |
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread, |
const base::Closure& error_callback, |
syncer::ModelType type, |
SyncApiComponentFactory* sync_factory) |