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

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

Issue 2142123002: [Autofill] Run autofill-profile de-dupe after sync starts if sync is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better logging and fix mathp's comments Created 4 years, 5 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: components/autofill/core/browser/autofill_profile.cc
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc
index 741cd1a3c59023e0b902db3d5eda759a7539254a..f73fe5eece0e2f1ea1e47a88205c70bc08378eff 100644
--- a/components/autofill/core/browser/autofill_profile.cc
+++ b/components/autofill/core/browser/autofill_profile.cc
@@ -446,6 +446,8 @@ bool AutofillProfile::MergeDataFrom(const AutofillProfile& profile,
PhoneNumber phone_number(this);
Address address;
+ DVLOG(1) << "Merging profiles:\nSource = " << profile << "\nDest = " << *this;
+
// The comparator's merge operations are biased to prefer the data in the
// first profile parameter when the data is the same modulo case. We pass the
// incoming profile in this position to prefer accepting updates instead of
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/autofill_profile_comparator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698