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/phone_field.h" | 5 #include "chrome/browser/autofill/phone_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 // static | 14 // static |
14 PhoneField* PhoneField::Parse(std::vector<AutoFillField*>::const_iterator* iter, | 15 PhoneField* PhoneField::Parse(std::vector<AutoFillField*>::const_iterator* iter, |
15 bool is_ecml) { | 16 bool is_ecml) { |
16 DCHECK(iter); | 17 DCHECK(iter); |
17 if (!iter) | 18 if (!iter) |
18 return NULL; | 19 return NULL; |
19 | 20 |
20 if (is_ecml) | 21 if (is_ecml) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 return ok; | 126 return ok; |
126 } | 127 } |
127 | 128 |
128 PhoneField::PhoneField() | 129 PhoneField::PhoneField() |
129 : phone_(NULL), | 130 : phone_(NULL), |
130 area_code_(NULL), | 131 area_code_(NULL), |
131 prefix_(NULL), | 132 prefix_(NULL), |
132 extension_(NULL) { | 133 extension_(NULL) { |
133 } | 134 } |
OLD | NEW |