OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/autofill/form_group.h" | 5 #include "components/autofill/browser/form_group.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/autofill/autofill_country.h" | 14 #include "components/autofill/browser/autofill_country.h" |
15 #include "components/autofill/common/form_field_data.h" | 15 #include "components/autofill/common/form_field_data.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // TODO(jhawkins): Add more states/provinces. See http://crbug.com/45039. | 21 // TODO(jhawkins): Add more states/provinces. See http://crbug.com/45039. |
22 | 22 |
23 class State { | 23 class State { |
24 public: | 24 public: |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 } | 313 } |
314 | 314 |
315 bool FormGroup::FillCountrySelectControl(FormFieldData* field_data) const { | 315 bool FormGroup::FillCountrySelectControl(FormFieldData* field_data) const { |
316 return false; | 316 return false; |
317 } | 317 } |
318 | 318 |
319 // static | 319 // static |
320 bool FormGroup::IsValidState(const string16& value) { | 320 bool FormGroup::IsValidState(const string16& value) { |
321 return !State::Abbreviation(value).empty() || !State::FullName(value).empty(); | 321 return !State::Abbreviation(value).empty() || !State::FullName(value).empty(); |
322 } | 322 } |
OLD | NEW |