OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/core/browser/autofill_xml_parser.h" | 5 #include "components/autofill/core/browser/autofill_xml_parser.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "components/autofill/core/browser/autofill_server_field_info.h" | 11 #include "components/autofill/core/browser/autofill_server_field_info.h" |
12 #include "third_party/libjingle/source/talk/xmllite/qname.h" | 12 #include "third_party/webrtc/libjingle/xmllite/qname.h" |
13 | 13 |
14 namespace autofill { | 14 namespace autofill { |
15 | 15 |
16 AutofillXmlParser::AutofillXmlParser() | 16 AutofillXmlParser::AutofillXmlParser() |
17 : succeeded_(true) { | 17 : succeeded_(true) { |
18 } | 18 } |
19 | 19 |
20 AutofillXmlParser::~AutofillXmlParser() {} | 20 AutofillXmlParser::~AutofillXmlParser() {} |
21 | 21 |
22 void AutofillXmlParser::CharacterData( | 22 void AutofillXmlParser::CharacterData( |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 char* attr_end = NULL; | 173 char* attr_end = NULL; |
174 double value = strtod(attribute, &attr_end); | 174 double value = strtod(attribute, &attr_end); |
175 if (attr_end != NULL && attr_end == attribute) { | 175 if (attr_end != NULL && attr_end == attribute) { |
176 context->RaiseError(XML_ERROR_SYNTAX); | 176 context->RaiseError(XML_ERROR_SYNTAX); |
177 return 0.0; | 177 return 0.0; |
178 } | 178 } |
179 return value; | 179 return value; |
180 } | 180 } |
181 | 181 |
182 } // namespace autofill | 182 } // namespace autofill |
OLD | NEW |