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

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

Issue 1989173005: [Autofill] Dedupe similar profiles on insertion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 6 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_profile.h
diff --git a/components/autofill/core/browser/autofill_profile.h b/components/autofill/core/browser/autofill_profile.h
index 3f5e1eedd8616e5394e5eb8271a78cc5871c9e14..f1739db478163a30267871006e76ee4720eab7d9 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -99,10 +99,11 @@ class AutofillProfile : public AutofillDataModel {
bool operator==(const AutofillProfile& profile) const;
virtual bool operator!=(const AutofillProfile& profile) const;
- // Returns concatenation of first name, last name, address line 1 and city.
- // This acts as the basis of comparison for new values that are submitted
- // through forms to aid with correct aggregation of new data.
- const base::string16 PrimaryValue() const;
+ // Returns concatenation of first name, last name, address line 1 and city,
+ // with each part separated by a whitespace. This acts as the basis of
+ // comparison for new values that are submitted through forms to aid with
+ // correct aggregation of new data.
+ const base::string16 PrimaryValue(const std::string& app_locale) const;
// Returns true if the data in this AutofillProfile is a subset of the data in
// |profile|.
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698