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

Side by Side Diff: components/autofill/core/browser/autofill_country.cc

Issue 952993003: [android] Handle unknown country codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: known_country_names Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_country.h" 5 #include "components/autofill/core/browser/autofill_country.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 ADDRESS_REQUIRES_CITY } }, 752 ADDRESS_REQUIRES_CITY } },
753 { "VU", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 753 { "VU", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
754 IDS_AUTOFILL_FIELD_LABEL_PROVINCE, 754 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
755 ADDRESS_REQUIREMENTS_UNKNOWN } }, 755 ADDRESS_REQUIREMENTS_UNKNOWN } },
756 { "WF", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 756 { "WF", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
757 IDS_AUTOFILL_FIELD_LABEL_PROVINCE, 757 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
758 ADDRESS_REQUIRES_CITY_ZIP } }, 758 ADDRESS_REQUIRES_CITY_ZIP } },
759 { "WS", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 759 { "WS", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
760 IDS_AUTOFILL_FIELD_LABEL_PROVINCE, 760 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
761 ADDRESS_REQUIREMENTS_UNKNOWN } }, 761 ADDRESS_REQUIREMENTS_UNKNOWN } },
762 { "XK", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
763 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
764 ADDRESS_REQUIRES_CITY } },
762 { "YE", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 765 { "YE", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
763 IDS_AUTOFILL_FIELD_LABEL_PROVINCE, 766 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
764 ADDRESS_REQUIRES_CITY } }, 767 ADDRESS_REQUIRES_CITY } },
765 { "YT", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 768 { "YT", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
766 IDS_AUTOFILL_FIELD_LABEL_PROVINCE, 769 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
767 ADDRESS_REQUIRES_CITY_ZIP } }, 770 ADDRESS_REQUIRES_CITY_ZIP } },
768 { "ZA", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 771 { "ZA", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
769 IDS_AUTOFILL_FIELD_LABEL_PROVINCE, 772 IDS_AUTOFILL_FIELD_LABEL_PROVINCE,
770 ADDRESS_REQUIRES_CITY_ZIP } }, 773 ADDRESS_REQUIRES_CITY_ZIP } },
771 { "ZM", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE, 774 { "ZM", { IDS_AUTOFILL_FIELD_LABEL_POSTAL_CODE,
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 const base::string16& name, 1111 const base::string16& name,
1109 const base::string16& postal_code_label, 1112 const base::string16& postal_code_label,
1110 const base::string16& state_label) 1113 const base::string16& state_label)
1111 : country_code_(country_code), 1114 : country_code_(country_code),
1112 name_(name), 1115 name_(name),
1113 postal_code_label_(postal_code_label), 1116 postal_code_label_(postal_code_label),
1114 state_label_(state_label) { 1117 state_label_(state_label) {
1115 } 1118 }
1116 1119
1117 } // namespace autofill 1120 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698