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

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

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)
Patch Set: Rebase. 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..dcbe691423ad68df61c42bda297d34cdf74b9715 100644
--- a/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
+++ b/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
@@ -4,6 +4,8 @@
#include "components/autofill/core/browser/autofill_wallet_data_type_controller.h"
+#include <utility>
+
#include "base/bind.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
@@ -18,13 +20,15 @@ namespace browser_sync {
AutofillWalletDataTypeController::AutofillWalletDataTypeController(
syncer::ModelType type,
- const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> db_thread,
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),
- sync_client_(sync_client),
+ : NonUIDataTypeController(type,
+ dump_stack,
+ sync_client,
+ syncer::GROUP_DB,
+ std::move(db_thread)),
callback_registered_(false),
web_data_service_(web_data_service),
currently_enabled_(IsEnabled()) {
@@ -39,18 +43,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