| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/select_control_handler.h" | 5 #include "chrome/browser/autofill/select_control_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/autofill/form_group.h" | 14 #include "chrome/browser/autofill/form_group.h" |
| 14 #include "webkit/glue/form_field.h" | 15 #include "webkit/glue/form_field.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 // TODO(jhawkins): Add more states/provinces. See http://crbug.com/45039. | 19 // TODO(jhawkins): Add more states/provinces. See http://crbug.com/45039. |
| 19 | 20 |
| 20 class State { | 21 class State { |
| 21 public: | 22 public: |
| 22 const char* name; | 23 const char* name; |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 type.field_type() == ADDRESS_BILLING_COUNTRY) { | 511 type.field_type() == ADDRESS_BILLING_COUNTRY) { |
| 511 FillCountrySelectControl(field_text, field); | 512 FillCountrySelectControl(field_text, field); |
| 512 } else if (type.field_type() == CREDIT_CARD_EXP_MONTH) { | 513 } else if (type.field_type() == CREDIT_CARD_EXP_MONTH) { |
| 513 FillExpirationMonthSelectControl(field_text, field); | 514 FillExpirationMonthSelectControl(field_text, field); |
| 514 } | 515 } |
| 515 | 516 |
| 516 return; | 517 return; |
| 517 } | 518 } |
| 518 | 519 |
| 519 } // namespace autofill | 520 } // namespace autofill |
| OLD | NEW |