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

Unified Diff: components/autofill/core/browser/autofill_wallet_data_type_controller.cc

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)
Patch Set: Fix integration test issue. 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/autofill_wallet_data_type_controller.cc
diff --git a/components/autofill/core/browser/autofill_wallet_data_type_controller.cc b/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
index 61bf8140a6cea858d0f16d1fe8177cd7617bac83..af473b356836c4b7473a3e4907f464ce36e9396c 100644
--- a/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
+++ b/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
@@ -22,8 +22,11 @@ AutofillWalletDataTypeController::AutofillWalletDataTypeController(
const base::Closure& dump_stack,
syncer::SyncClient* sync_client,
const scoped_refptr<autofill::AutofillWebDataService>& web_data_service)
- : NonUIDataTypeController(type, dump_stack, sync_client),
- db_thread_(db_thread),
+ : NonUIDataTypeController(type,
+ dump_stack,
+ sync_client,
+ syncer::GROUP_DB,
+ db_thread),
maxbogue 2016/11/21 21:44:23 std::move(db_thread)
pavely 2016/11/22 00:53:51 Done.
sync_client_(sync_client),
callback_registered_(false),
web_data_service_(web_data_service),
@@ -39,18 +42,6 @@ AutofillWalletDataTypeController::AutofillWalletDataTypeController(
AutofillWalletDataTypeController::~AutofillWalletDataTypeController() {}
-syncer::ModelSafeGroup AutofillWalletDataTypeController::model_safe_group()
- const {
- return syncer::GROUP_DB;
-}
-
-bool AutofillWalletDataTypeController::PostTaskOnBackendThread(
- const tracked_objects::Location& from_here,
- const base::Closure& task) {
- DCHECK(CalledOnValidThread());
- return db_thread_->PostTask(from_here, task);
-}
-
bool AutofillWalletDataTypeController::StartModels() {
DCHECK(CalledOnValidThread());
DCHECK_EQ(state(), MODEL_STARTING);

Powered by Google App Engine
This is Rietveld 408576698