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

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

Issue 261993006: Modified to allow to preserve two-word string in first-name and last-name in autofill profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated review comments and modified unit tests. Created 6 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 | « AUTHORS ('k') | 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 5768386cc92e1cee09a8445134a2e7077b7dbc5a..7ae95722a1d33408f53235d6012229968359407e 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -191,6 +191,12 @@ class AutofillProfile : public AutofillDataModel {
const FormGroup* FormGroupForType(const AutofillType& type) const;
FormGroup* MutableFormGroupForType(const AutofillType& type);
+ // Appends unique names from |names| onto the |name_| list, dropping
+ // duplicates. If a name in |names| has the same full name representation
+ // as a name in |name_|, keeps the variant that has more information (i.e.
+ // is not reconstructible via a heuristic parse of the full name string).
+ void OverwriteOrAppendNames(const std::vector<NameInfo>& names);
+
// Personal information for this profile.
std::vector<NameInfo> name_;
std::vector<EmailInfo> email_;
« no previous file with comments | « AUTHORS ('k') | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698