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

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

Issue 5159001: Rest of the autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch uploaded to debug why try servers have problem applying this patch. Created 10 years 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_profile_model_associator.h
diff --git a/chrome/browser/sync/glue/autofill_profile_model_associator.h b/chrome/browser/sync/glue/autofill_profile_model_associator.h
index ad8af5c304a832e9022e95e5aebbad515f7efa48..f636b635894a45e60638741fc86872a30aa3f8d0 100644
--- a/chrome/browser/sync/glue/autofill_profile_model_associator.h
+++ b/chrome/browser/sync/glue/autofill_profile_model_associator.h
@@ -31,6 +31,8 @@ class WriteTransaction;
namespace browser_sync {
+extern const char kAutofillProfileTag[];
+
class AutofillChangeProcessor;
class UnrecoverableErrorHandler;
@@ -94,6 +96,10 @@ class AutofillProfileModelAssociator
// Returns sync service instance.
ProfileSyncService* sync_service() { return sync_service_; }
+ static bool OverwriteProfileWithServerData(
+ AutoFillProfile* merge_into,
+ const sync_pb::AutofillProfileSpecifics& specifics);
+
protected:
AutofillProfileModelAssociator();
bool TraverseAndAssociateChromeAutoFillProfiles(
@@ -130,10 +136,6 @@ class AutofillProfileModelAssociator
const sync_api::ReadNode& autofill_root,
DataBundle* bundle);
- static bool OverwriteProfileWithServerData(
- AutoFillProfile* merge_into,
- const sync_pb::AutofillProfileSpecifics& specifics);
-
private:
typedef std::map<std::string, int64> AutofillToSyncIdMap;
typedef std::map<int64, std::string> SyncIdToAutofillMap;
@@ -161,6 +163,8 @@ class AutofillProfileModelAssociator
const sync_api::BaseNode& autofill_root,
const AutoFillProfile& profile);
+ bool MigrationLoggingEnabled();
+
ProfileSyncService* sync_service_;
WebDatabase* web_database_;
PersonalDataManager* personal_data_;
@@ -175,6 +179,8 @@ class AutofillProfileModelAssociator
Lock abort_association_pending_lock_;
bool abort_association_pending_;
+ int number_of_profiles_created_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillProfileModelAssociator);
};
@@ -189,3 +195,4 @@ struct AutofillProfileModelAssociator::DataBundle {
} // namespace browser_sync
#endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_
+

Powered by Google App Engine
This is Rietveld 408576698