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

Unified Diff: components/autofill/core/browser/webdata/autofill_data_type_controller.cc

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)
Patch Set: . Created 4 years, 1 month 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/autofill/core/browser/webdata/autofill_data_type_controller.cc
diff --git a/components/autofill/core/browser/webdata/autofill_data_type_controller.cc b/components/autofill/core/browser/webdata/autofill_data_type_controller.cc
index d1399bfc3a2acfc5f6b4f5f5d24b1f8c0bfab1d1..9e4f12a5f35c7acf8d2f71348ba7cfdbce4c7b16 100644
--- a/components/autofill/core/browser/webdata/autofill_data_type_controller.cc
+++ b/components/autofill/core/browser/webdata/autofill_data_type_controller.cc
@@ -18,14 +18,13 @@ AutofillDataTypeController::AutofillDataTypeController(
const base::Closure& dump_stack,
syncer::SyncClient* sync_client,
const scoped_refptr<autofill::AutofillWebDataService>& web_data_service)
- : NonUIDataTypeController(syncer::AUTOFILL, dump_stack, sync_client),
- db_thread_(db_thread),
+ : NonUIDataTypeController(syncer::AUTOFILL,
+ dump_stack,
+ sync_client,
+ syncer::GROUP_DB,
+ db_thread),
web_data_service_(web_data_service) {}
-syncer::ModelSafeGroup AutofillDataTypeController::model_safe_group() const {
- return syncer::GROUP_DB;
-}
-
void AutofillDataTypeController::WebDatabaseLoaded() {
DCHECK(CalledOnValidThread());
DCHECK_EQ(MODEL_STARTING, state());
@@ -37,13 +36,6 @@ AutofillDataTypeController::~AutofillDataTypeController() {
DCHECK(CalledOnValidThread());
}
-bool AutofillDataTypeController::PostTaskOnBackendThread(
- const tracked_objects::Location& from_here,
- const base::Closure& task) {
- DCHECK(CalledOnValidThread());
- return db_thread_->PostTask(from_here, task);
-}
-
bool AutofillDataTypeController::StartModels() {
DCHECK(CalledOnValidThread());
DCHECK_EQ(MODEL_STARTING, state());

Powered by Google App Engine
This is Rietveld 408576698