| 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/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" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } else if (type.field_type() == ADDRESS_HOME_COUNTRY || | 235 } else if (type.field_type() == ADDRESS_HOME_COUNTRY || |
| 236 type.field_type() == ADDRESS_BILLING_COUNTRY) { | 236 type.field_type() == ADDRESS_BILLING_COUNTRY) { |
| 237 FillCountrySelectControl(form_group, field); | 237 FillCountrySelectControl(form_group, field); |
| 238 } else if (type.field_type() == CREDIT_CARD_EXP_MONTH) { | 238 } else if (type.field_type() == CREDIT_CARD_EXP_MONTH) { |
| 239 FillExpirationMonthSelectControl(field_text, field); | 239 FillExpirationMonthSelectControl(field_text, field); |
| 240 } | 240 } |
| 241 | 241 |
| 242 return; | 242 return; |
| 243 } | 243 } |
| 244 | 244 |
| 245 bool IsValidState(string16 value) { |
| 246 return !State::Abbreviation(value).empty() || !State::FullName(value).empty(); |
| 247 } |
| 248 |
| 245 } // namespace autofill | 249 } // namespace autofill |
| OLD | NEW |