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

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

Issue 5364007: Autofill should not allow overwrite of field data when merging profile data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace. Created 10 years, 1 month 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 | chrome/browser/autofill/personal_data_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_profile.cc
diff --git a/chrome/browser/autofill/autofill_profile.cc b/chrome/browser/autofill/autofill_profile.cc
index efcdffda93f9f357cd18987c2b17f3713077465e..40a749b2e8347fd18f9a6f5b25459a4b28864492 100644
--- a/chrome/browser/autofill/autofill_profile.cc
+++ b/chrome/browser/autofill/autofill_profile.cc
@@ -434,7 +434,9 @@ bool AutoFillProfile::operator!=(const AutoFillProfile& profile) const {
const string16 AutoFillProfile::PrimaryValue() const {
return GetFieldText(AutoFillType(NAME_FULL)) +
- GetFieldText(AutoFillType(ADDRESS_HOME_LINE1));
+ GetFieldText(AutoFillType(ADDRESS_HOME_LINE1)) +
+ GetFieldText(AutoFillType(ADDRESS_HOME_LINE2)) +
+ GetFieldText(AutoFillType(EMAIL_ADDRESS));
}
Address* AutoFillProfile::GetHomeAddress() {
« no previous file with comments | « no previous file | chrome/browser/autofill/personal_data_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698