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

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

Issue 2644373003: Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Created 3 years, 11 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/model_type_controller.cc
diff --git a/components/sync/driver/model_type_controller.cc b/components/sync/driver/model_type_controller.cc
index c85cf6ceedf92eda074af65c47d7ad2fbc2b5970..b0d28cf087cf72346d312fa894b5625b02ed746e 100644
--- a/components/sync/driver/model_type_controller.cc
+++ b/components/sync/driver/model_type_controller.cc
@@ -127,7 +127,18 @@
std::move(error_handler), std::move(callback)));
}
-void ModelTypeController::BeforeLoadModels(ModelTypeConfigurer* configurer) {}
+void ModelTypeController::GetAllNodes(const AllNodesCallback& callback) {
+ model_thread_->PostTask(
+ FROM_HERE, base::Bind(&CallGetAllNodesHelper, sync_client_, type(),
+ BindToCurrentThread(callback)));
+}
+
+void ModelTypeController::GetStatusCounters(
+ const StatusCountersCallback& callback) {
+ model_thread_->PostTask(
+ FROM_HERE,
+ base::Bind(&CallGetStatusCountersHelper, sync_client_, type(), callback));
+}
void ModelTypeController::LoadModelsDone(ConfigureResult result,
const SyncError& error) {
@@ -242,19 +253,6 @@
return state_;
}
-void ModelTypeController::GetAllNodes(const AllNodesCallback& callback) {
- model_thread_->PostTask(
- FROM_HERE, base::Bind(&CallGetAllNodesHelper, sync_client_, type(),
- BindToCurrentThread(callback)));
-}
-
-void ModelTypeController::GetStatusCounters(
- const StatusCountersCallback& callback) {
- model_thread_->PostTask(
- FROM_HERE,
- base::Bind(&CallGetStatusCountersHelper, sync_client_, type(), callback));
-}
-
void ModelTypeController::ReportModelError(const ModelError& error) {
DCHECK(CalledOnValidThread());
LoadModelsDone(UNRECOVERABLE_ERROR,
« no previous file with comments | « components/sync/driver/model_type_controller.h ('k') | components/sync/driver/model_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698