Chromium Code Reviews| Index: components/autofill/core/browser/autofill_profile.cc |
| diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc |
| index 3e7e7aa14c5a5195f8b7fa5bca780f49c3c042a7..fafcbb3adc04b4496986a87e5331d7e737ca31c2 100644 |
| --- a/components/autofill/core/browser/autofill_profile.cc |
| +++ b/components/autofill/core/browser/autofill_profile.cc |
| @@ -262,6 +262,7 @@ AutofillProfile& AutofillProfile::operator=(const AutofillProfile& profile) { |
| phone_number_[i].set_profile(this); |
| address_ = profile.address_; |
| + set_language_code(profile.language_code()); |
| return *this; |
| } |
| @@ -444,7 +445,7 @@ int AutofillProfile::Compare(const AutofillProfile& profile) const { |
| } |
| } |
| - return 0; |
| + return language_code().compare(profile.language_code()); |
|
Ilya Sherman
2014/04/02 23:48:11
Hmm, it's a little strange to include the language
please use gerrit instead
2014/04/08 21:33:31
Removed.
|
| } |
| bool AutofillProfile::operator==(const AutofillProfile& profile) const { |
| @@ -845,6 +846,8 @@ std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile) { |
| << " " |
| << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) |
| << " " |
| + << profile.language_code() |
| + << " " |
| << UTF16ToUTF8(MultiString(profile, PHONE_HOME_WHOLE_NUMBER)); |
| } |