Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/autofill/autofill_xml_parser.cc

Issue 2255007: New libjingle integrated to chrome. (Closed)
Patch Set: - Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/autofill_xml_parser.h" 5 #include "chrome/browser/autofill/autofill_xml_parser.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/autofill/autofill_type.h" 10 #include "chrome/browser/autofill/autofill_type.h"
11 #include "third_party/libjingle/files/talk/xmllite/qname.h" 11 #include "third_party/libjingle/overrides/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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 double AutoFillUploadXmlParser::GetDoubleValue(buzz::XmlParseContext* context, 122 double AutoFillUploadXmlParser::GetDoubleValue(buzz::XmlParseContext* context,
123 const char* attribute) { 123 const char* attribute) {
124 char* attr_end = NULL; 124 char* attr_end = NULL;
125 double value = strtod(attribute, &attr_end); 125 double value = strtod(attribute, &attr_end);
126 if (attr_end != NULL && attr_end == attribute) { 126 if (attr_end != NULL && attr_end == attribute) {
127 context->RaiseError(XML_ERROR_SYNTAX); 127 context->RaiseError(XML_ERROR_SYNTAX);
128 return 0.0; 128 return 0.0;
129 } 129 }
130 return value; 130 return value;
131 } 131 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_xml_parser.h ('k') | chrome/browser/autofill/autofill_xml_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698