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

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: Created 6 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: 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..ba4832b60cb315f069f9843fb5f3b7b30b09e058 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);
+ // Overwrites or appends names from autofillable profile |names| to the
+ // existing list of autofill profile names maintained under |name_|, so as
+ // to keep ones with more information for identical profile full names
+ // otherwise append to this list.
Ilya Sherman 2014/06/03 00:25:32 nit: Suggested rephrasing. Of course, feel free t
Pritam Nikam 2014/06/03 15:37:34 Done.
+ void OverwriteOrAppendNames(const std::vector<NameInfo>& names);
+
// Personal information for this profile.
std::vector<NameInfo> name_;
std::vector<EmailInfo> email_;

Powered by Google App Engine
This is Rietveld 408576698