Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/core/browser/autofill_profile.h" | 5 #include "components/autofill/core/browser/autofill_profile.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 name_ = profile.name_; | 236 name_ = profile.name_; |
| 237 email_ = profile.email_; | 237 email_ = profile.email_; |
| 238 company_ = profile.company_; | 238 company_ = profile.company_; |
| 239 phone_number_ = profile.phone_number_; | 239 phone_number_ = profile.phone_number_; |
| 240 phone_number_.set_profile(this); | 240 phone_number_.set_profile(this); |
| 241 | 241 |
| 242 address_ = profile.address_; | 242 address_ = profile.address_; |
| 243 set_language_code(profile.language_code()); | 243 set_language_code(profile.language_code()); |
| 244 | 244 |
| 245 server_id_ = profile.server_id(); | 245 server_id_ = profile.server_id(); |
| 246 has_converted_ = profile.has_converted(); | |
|
please use gerrit instead
2017/01/16 18:20:12
You need to initialize this boolean in every const
sebsg
2017/01/16 18:57:39
Seems I did too much Java recently... thanks!
| |
| 246 | 247 |
| 247 return *this; | 248 return *this; |
| 248 } | 249 } |
| 249 | 250 |
| 250 // TODO(crbug.com/589535): Disambiguate similar field types before uploading. | 251 // TODO(crbug.com/589535): Disambiguate similar field types before uploading. |
| 251 void AutofillProfile::GetMatchingTypes( | 252 void AutofillProfile::GetMatchingTypes( |
| 252 const base::string16& text, | 253 const base::string16& text, |
| 253 const std::string& app_locale, | 254 const std::string& app_locale, |
| 254 ServerFieldTypeSet* matching_types) const { | 255 ServerFieldTypeSet* matching_types) const { |
| 255 FormGroupList info = FormGroups(); | 256 FormGroupList info = FormGroups(); |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 855 << " " << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_CITY)) << " " | 856 << " " << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_CITY)) << " " |
| 856 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_STATE)) << " " | 857 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_STATE)) << " " |
| 857 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_ZIP)) << " " | 858 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_ZIP)) << " " |
| 858 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)) << " " | 859 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)) << " " |
| 859 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) << " " | 860 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) << " " |
| 860 << profile.language_code() << " " | 861 << profile.language_code() << " " |
| 861 << UTF16ToUTF8(profile.GetRawInfo(PHONE_HOME_WHOLE_NUMBER)); | 862 << UTF16ToUTF8(profile.GetRawInfo(PHONE_HOME_WHOLE_NUMBER)); |
| 862 } | 863 } |
| 863 | 864 |
| 864 } // namespace autofill | 865 } // namespace autofill |
| OLD | NEW |