Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: components/autofill/browser/autofill_type.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_type.h ('k') | components/autofill/browser/autofill_type_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698