| 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/autofill_type.h" | 5 #include "components/autofill/browser/autofill_type.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| 11 AutofillType::AutofillType(AutofillFieldType field_type) { | 11 AutofillType::AutofillType(AutofillFieldType field_type) { |
| 12 if ((field_type < NO_SERVER_DATA || field_type >= MAX_VALID_FIELD_TYPE) || | 12 if ((field_type < NO_SERVER_DATA || field_type >= MAX_VALID_FIELD_TYPE) || |
| 13 (field_type >= 15 && field_type <= 19) || | 13 (field_type >= 15 && field_type <= 19) || |
| 14 (field_type >= 25 && field_type <= 29) || | 14 (field_type >= 25 && field_type <= 29) || |
| 15 (field_type >= 44 && field_type <= 50)) | 15 (field_type >= 44 && field_type <= 50)) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 if (str == "CREDIT_CARD_TYPE") | 285 if (str == "CREDIT_CARD_TYPE") |
| 286 return CREDIT_CARD_TYPE; | 286 return CREDIT_CARD_TYPE; |
| 287 if (str == "CREDIT_CARD_VERIFICATION_CODE") | 287 if (str == "CREDIT_CARD_VERIFICATION_CODE") |
| 288 return CREDIT_CARD_VERIFICATION_CODE; | 288 return CREDIT_CARD_VERIFICATION_CODE; |
| 289 if (str == "COMPANY_NAME") | 289 if (str == "COMPANY_NAME") |
| 290 return COMPANY_NAME; | 290 return COMPANY_NAME; |
| 291 | 291 |
| 292 NOTREACHED() << "Unknown AutofillFieldType " << str; | 292 NOTREACHED() << "Unknown AutofillFieldType " << str; |
| 293 return UNKNOWN_TYPE; | 293 return UNKNOWN_TYPE; |
| 294 } | 294 } |
| OLD | NEW |