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

Unified Diff: chrome/browser/autofill/contact_info.cc

Issue 8038064: Autofill: Support 'full names' that are lacking a first or a middle name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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: chrome/browser/autofill/contact_info.cc
diff --git a/chrome/browser/autofill/contact_info.cc b/chrome/browser/autofill/contact_info.cc
index c7a4b77f38c3d9dee63f3acdad1eefb04c4f6060..c3a92d83553d72b9a54e9e2e9649cce7d562e7c0 100644
--- a/chrome/browser/autofill/contact_info.cc
+++ b/chrome/browser/autofill/contact_info.cc
@@ -84,11 +84,9 @@ void NameInfo::SetInfo(AutofillFieldType type, const string16& value) {
}
string16 NameInfo::FullName() const {
- if (first_.empty())
- return string16();
-
std::vector<string16> full_name;
- full_name.push_back(first_);
+ if (!first_.empty())
+ full_name.push_back(first_);
if (!middle_.empty())
full_name.push_back(middle_);

Powered by Google App Engine
This is Rietveld 408576698