OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/form_field.h" | 5 #include "chrome/browser/autofill/form_field.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/autofill/address_field.h" | 9 #include "chrome/browser/autofill/address_field.h" |
9 #include "chrome/browser/autofill/autofill_field.h" | 10 #include "chrome/browser/autofill/autofill_field.h" |
10 #include "chrome/browser/autofill/credit_card_field.h" | 11 #include "chrome/browser/autofill/credit_card_field.h" |
11 #include "chrome/browser/autofill/fax_field.h" | 12 #include "chrome/browser/autofill/fax_field.h" |
12 #include "chrome/browser/autofill/name_field.h" | 13 #include "chrome/browser/autofill/name_field.h" |
13 #include "chrome/browser/autofill/phone_field.h" | 14 #include "chrome/browser/autofill/phone_field.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebRegularExpression.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebRegularExpression.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
16 | 17 |
17 // Field names from the ECML specification; see RFC 3106. We've | 18 // Field names from the ECML specification; see RFC 3106. We've |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 if (base::strncasecmp(name.c_str(), form_fields[i].name_, | 368 if (base::strncasecmp(name.c_str(), form_fields[i].name_, |
368 form_fields[i].length_) == 0) { | 369 form_fields[i].length_) == 0) { |
369 return true; | 370 return true; |
370 } | 371 } |
371 } | 372 } |
372 } | 373 } |
373 } | 374 } |
374 | 375 |
375 return false; | 376 return false; |
376 } | 377 } |
OLD | NEW |