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

Unified Diff: chrome/browser/sync/glue/autofill_wallet_data_type_controller.h

Issue 1373573003: [Sync] Componentize AutofillWalletDataTypeController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing gyp dep. Created 5 years, 2 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: chrome/browser/sync/glue/autofill_wallet_data_type_controller.h
diff --git a/chrome/browser/sync/glue/autofill_wallet_data_type_controller.h b/chrome/browser/sync/glue/autofill_wallet_data_type_controller.h
deleted file mode 100644
index f67ba59711c567f4fbe474ef093e0f5111a992bd..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/glue/autofill_wallet_data_type_controller.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_WALLET_DATA_TYPE_CONTROLLER_H_
-#define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_WALLET_DATA_TYPE_CONTROLLER_H_
-
-#include "base/basictypes.h"
-#include "base/prefs/pref_change_registrar.h"
-#include "components/sync_driver/non_ui_data_type_controller.h"
-
-namespace browser_sync {
-
-// Controls syncing of either AUTOFILL_WALLET or AUTOFILL_WALLET_METADATA.
-class AutofillWalletDataTypeController
- : public sync_driver::NonUIDataTypeController {
- public:
- // |model_type| should be either AUTOFILL_WALLET or AUTOFILL_WALLET_METADATA.
- AutofillWalletDataTypeController(
- sync_driver::SyncClient* sync_client,
- syncer::ModelType model_type);
-
- // NonUIDataTypeController implementation.
- syncer::ModelType type() const override;
- syncer::ModelSafeGroup model_safe_group() const override;
-
- protected:
- ~AutofillWalletDataTypeController() override;
-
- private:
- // NonUIDataTypeController implementation.
- bool PostTaskOnBackendThread(const tracked_objects::Location& from_here,
- const base::Closure& task) override;
- bool StartModels() override;
- void StopModels() override;
- bool ReadyForStart() const override;
-
- // Callback for changes to the autofill prefs.
- void OnSyncPrefChanged();
-
- // Returns true if the prefs are set such that wallet sync should be enabled.
- bool IsEnabled();
-
- sync_driver::SyncClient* const sync_client_;
- bool callback_registered_;
- syncer::ModelType model_type_;
-
- // Stores whether we're currently syncing wallet data. This is the last
- // value computed by IsEnabled.
- bool currently_enabled_;
-
- // Registrar for listening to kAutofillWalletSyncExperimentEnabled status.
- PrefChangeRegistrar pref_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(AutofillWalletDataTypeController);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_WALLET_DATA_TYPE_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698