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

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

Issue 1110833002: [autofill] Sync server card and address metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work Created 5 years, 7 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
index 18aaf36fa2b9046cd186a4923a0e83902d63bb3a..b8423897bac11e3daab46ffa94ea43dda3b7ce2b 100644
--- a/chrome/browser/sync/glue/autofill_wallet_data_type_controller.h
+++ b/chrome/browser/sync/glue/autofill_wallet_data_type_controller.h
@@ -14,12 +14,15 @@ class ProfileSyncComponentsFactory;
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(
ProfileSyncComponentsFactory* profile_sync_factory,
- Profile* profile);
+ Profile* profile,
+ syncer::ModelType model_type);
// NonUIDataTypeController implementation.
syncer::ModelType type() const override;
@@ -36,8 +39,6 @@ class AutofillWalletDataTypeController
void StopModels() override;
bool ReadyForStart() const override;
- void WebDatabaseLoaded();
-
// Callback for changes to the autofill prefs.
void OnSyncPrefChanged();
@@ -46,6 +47,7 @@ class AutofillWalletDataTypeController
Profile* const profile_;
bool callback_registered_;
+ syncer::ModelType model_type_;
// Stores whether we're currently syncing wallet data. This is the last
// value computed by IsEnabled.

Powered by Google App Engine
This is Rietveld 408576698