| 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 "chrome/browser/autofill/autofill_type.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include <ostream> |
| 8 |
| 8 #include "base/logging.h" | 9 #include "base/logging.h" |
| 9 | 10 |
| 10 namespace { | 11 namespace { |
| 11 | 12 |
| 12 const AutofillType::AutofillTypeDefinition kUnknownAutofillTypeDefinition = { | 13 const AutofillType::AutofillTypeDefinition kUnknownAutofillTypeDefinition = { |
| 13 /* UNKNOWN_TYPE */ AutofillType::NO_GROUP, AutofillType::NO_SUBGROUP | 14 /* UNKNOWN_TYPE */ AutofillType::NO_GROUP, AutofillType::NO_SUBGROUP |
| 14 }; | 15 }; |
| 15 | 16 |
| 16 AutofillType::AutofillTypeDefinition kAutofillTypeDefinitions[] = { | 17 AutofillType::AutofillTypeDefinition kAutofillTypeDefinitions[] = { |
| 17 // NO_SERVER_DATA | 18 // NO_SERVER_DATA |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 if (str == "CREDIT_CARD_TYPE") | 386 if (str == "CREDIT_CARD_TYPE") |
| 386 return CREDIT_CARD_TYPE; | 387 return CREDIT_CARD_TYPE; |
| 387 if (str == "CREDIT_CARD_VERIFICATION_CODE") | 388 if (str == "CREDIT_CARD_VERIFICATION_CODE") |
| 388 return CREDIT_CARD_VERIFICATION_CODE; | 389 return CREDIT_CARD_VERIFICATION_CODE; |
| 389 if (str == "COMPANY_NAME") | 390 if (str == "COMPANY_NAME") |
| 390 return COMPANY_NAME; | 391 return COMPANY_NAME; |
| 391 | 392 |
| 392 NOTREACHED() << "Unknown AutofillFieldType " << str; | 393 NOTREACHED() << "Unknown AutofillFieldType " << str; |
| 393 return UNKNOWN_TYPE; | 394 return UNKNOWN_TYPE; |
| 394 } | 395 } |
| OLD | NEW |