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

Unified Diff: components/sync_driver/ui_data_type_controller.h

Issue 1128523002: Usage of ThreadTaskRunner in lieu of in [chrome/browser/sync],[components/sync_driver] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments Created 5 years, 7 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: components/sync_driver/ui_data_type_controller.h
diff --git a/components/sync_driver/ui_data_type_controller.h b/components/sync_driver/ui_data_type_controller.h
index dcade3794cca8cf57cec62c8c4a01e3158a76f95..4bdcecdba982530c27b8048fc879f63092d19e8e 100644
--- a/components/sync_driver/ui_data_type_controller.h
+++ b/components/sync_driver/ui_data_type_controller.h
@@ -32,7 +32,7 @@ namespace sync_driver {
class UIDataTypeController : public DataTypeController {
public:
UIDataTypeController(
- scoped_refptr<base::MessageLoopProxy> ui_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
const base::Closure& error_callback,
syncer::ModelType type,
SyncApiComponentFactory* sync_factory);
@@ -120,7 +120,7 @@ class UIDataTypeController : public DataTypeController {
// real work. We do not own the object.
base::WeakPtr<syncer::SyncableService> local_service_;
- scoped_refptr<base::MessageLoopProxy> ui_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
private:
// Associate the sync model with the service's model, then start syncing.
virtual void Associate();
« no previous file with comments | « components/sync_driver/non_ui_data_type_controller.cc ('k') | components/sync_driver/ui_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698