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

Unified Diff: components/sync/driver/non_ui_model_type_controller.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 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/non_ui_model_type_controller.cc
diff --git a/components/sync/driver/non_ui_model_type_controller.cc b/components/sync/driver/non_ui_model_type_controller.cc
index 39967bec0b6d3a5c0b36a77838240f3f6c6272cd..4888f9bac5981340a0ab1941f35da4d1f8e17289 100644
--- a/components/sync/driver/non_ui_model_type_controller.cc
+++ b/components/sync/driver/non_ui_model_type_controller.cc
@@ -4,32 +4,16 @@
#include "components/sync/driver/non_ui_model_type_controller.h"
-#include "components/sync/api/model_type_service.h"
-#include "components/sync/base/model_type.h"
-#include "components/sync/core/activation_context.h"
-#include "components/sync/driver/sync_client.h"
-
namespace sync_driver_v2 {
using sync_driver::SyncClient;
NonUIModelTypeController::NonUIModelTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback,
- syncer::ModelType model_type,
+ syncer::ModelType type,
+ const base::Closure& dump_stack,
SyncClient* sync_client)
- : NonBlockingDataTypeController(ui_thread,
- error_callback,
- model_type,
- sync_client) {}
+ : NonBlockingDataTypeController(type, dump_stack, sync_client) {}
NonUIModelTypeController::~NonUIModelTypeController() {}
-void NonUIModelTypeController::RunOnUIThread(
- const tracked_objects::Location& from_here,
- const base::Closure& task) {
- DCHECK(!BelongsToUIThread());
- ui_thread()->PostTask(from_here, task);
-}
-
} // namespace sync_driver_v2
« no previous file with comments | « components/sync/driver/non_ui_model_type_controller.h ('k') | components/sync/driver/non_ui_model_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698