OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/address_field.h" | 5 #include "chrome/browser/autofill/address_field.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/autofill/autofill_field.h" | 12 #include "chrome/browser/autofill/autofill_field.h" |
12 | 13 |
13 bool AddressField::GetFieldInfo(FieldTypeMap* field_type_map) const { | 14 bool AddressField::GetFieldInfo(FieldTypeMap* field_type_map) const { |
14 AutoFillFieldType address_company; | 15 AutoFillFieldType address_company; |
15 AutoFillFieldType address_line1; | 16 AutoFillFieldType address_line1; |
16 AutoFillFieldType address_line2; | 17 AutoFillFieldType address_line2; |
17 AutoFillFieldType address_appt_num; | 18 AutoFillFieldType address_appt_num; |
18 AutoFillFieldType address_city; | 19 AutoFillFieldType address_city; |
19 AutoFillFieldType address_state; | 20 AutoFillFieldType address_state; |
20 AutoFillFieldType address_zip; | 21 AutoFillFieldType address_zip; |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 return kBillingAddress; | 381 return kBillingAddress; |
381 | 382 |
382 if (bill == string16::npos && ship != string16::npos) | 383 if (bill == string16::npos && ship != string16::npos) |
383 return kShippingAddress; | 384 return kShippingAddress; |
384 | 385 |
385 if (bill > ship) | 386 if (bill > ship) |
386 return kBillingAddress; | 387 return kBillingAddress; |
387 | 388 |
388 return kShippingAddress; | 389 return kShippingAddress; |
389 } | 390 } |
OLD | NEW |