OLD | NEW |
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_xml_parser.h" | 5 #include "chrome/browser/autofill/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 "third_party/libjingle/overrides/talk/xmllite/qname.h" | 11 #include "third_party/libjingle/source/talk/xmllite/qname.h" |
12 | 12 |
13 AutofillXmlParser::AutofillXmlParser() | 13 AutofillXmlParser::AutofillXmlParser() |
14 : succeeded_(true) { | 14 : succeeded_(true) { |
15 } | 15 } |
16 | 16 |
17 void AutofillXmlParser::CharacterData( | 17 void AutofillXmlParser::CharacterData( |
18 buzz::XmlParseContext* context, const char* text, int len) { | 18 buzz::XmlParseContext* context, const char* text, int len) { |
19 } | 19 } |
20 | 20 |
21 void AutofillXmlParser::EndElement(buzz::XmlParseContext* context, | 21 void AutofillXmlParser::EndElement(buzz::XmlParseContext* context, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 double AutofillUploadXmlParser::GetDoubleValue(buzz::XmlParseContext* context, | 135 double AutofillUploadXmlParser::GetDoubleValue(buzz::XmlParseContext* context, |
136 const char* attribute) { | 136 const char* attribute) { |
137 char* attr_end = NULL; | 137 char* attr_end = NULL; |
138 double value = strtod(attribute, &attr_end); | 138 double value = strtod(attribute, &attr_end); |
139 if (attr_end != NULL && attr_end == attribute) { | 139 if (attr_end != NULL && attr_end == attribute) { |
140 context->RaiseError(XML_ERROR_SYNTAX); | 140 context->RaiseError(XML_ERROR_SYNTAX); |
141 return 0.0; | 141 return 0.0; |
142 } | 142 } |
143 return value; | 143 return value; |
144 } | 144 } |
OLD | NEW |