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 "components/autofill/browser/autofill_type.h" | 5 #include "components/autofill/core/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 namespace autofill { | 11 namespace autofill { |
12 | 12 |
13 AutofillType::AutofillType(AutofillFieldType field_type) { | 13 AutofillType::AutofillType(AutofillFieldType field_type) { |
14 if ((field_type < NO_SERVER_DATA || field_type >= MAX_VALID_FIELD_TYPE) || | 14 if ((field_type < NO_SERVER_DATA || field_type >= MAX_VALID_FIELD_TYPE) || |
15 (field_type >= 15 && field_type <= 19) || | 15 (field_type >= 15 && field_type <= 19) || |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 if (str == "CREDIT_CARD_VERIFICATION_CODE") | 356 if (str == "CREDIT_CARD_VERIFICATION_CODE") |
357 return CREDIT_CARD_VERIFICATION_CODE; | 357 return CREDIT_CARD_VERIFICATION_CODE; |
358 if (str == "COMPANY_NAME") | 358 if (str == "COMPANY_NAME") |
359 return COMPANY_NAME; | 359 return COMPANY_NAME; |
360 | 360 |
361 NOTREACHED() << "Unknown AutofillFieldType " << str; | 361 NOTREACHED() << "Unknown AutofillFieldType " << str; |
362 return UNKNOWN_TYPE; | 362 return UNKNOWN_TYPE; |
363 } | 363 } |
364 | 364 |
365 } // namespace autofill | 365 } // namespace autofill |
OLD | NEW |