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

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

Issue 6775005: iwyu: Cleanup in the following files: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit test fixes. Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autofill/autofill_type.cc ('k') | chrome/browser/autofill/contact_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/autofill/autofill_type.h" 7 #include <stdlib.h>
8 #include <string.h>
9
10 #include "base/logging.h"
8 #include "third_party/libjingle/overrides/talk/xmllite/qname.h" 11 #include "third_party/libjingle/overrides/talk/xmllite/qname.h"
9 12
10 AutofillXmlParser::AutofillXmlParser() 13 AutofillXmlParser::AutofillXmlParser()
11 : succeeded_(true) { 14 : succeeded_(true) {
12 } 15 }
13 16
14 void AutofillXmlParser::CharacterData( 17 void AutofillXmlParser::CharacterData(
15 buzz::XmlParseContext* context, const char* text, int len) { 18 buzz::XmlParseContext* context, const char* text, int len) {
16 } 19 }
17 20
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 double AutofillUploadXmlParser::GetDoubleValue(buzz::XmlParseContext* context, 135 double AutofillUploadXmlParser::GetDoubleValue(buzz::XmlParseContext* context,
133 const char* attribute) { 136 const char* attribute) {
134 char* attr_end = NULL; 137 char* attr_end = NULL;
135 double value = strtod(attribute, &attr_end); 138 double value = strtod(attribute, &attr_end);
136 if (attr_end != NULL && attr_end == attribute) { 139 if (attr_end != NULL && attr_end == attribute) {
137 context->RaiseError(XML_ERROR_SYNTAX); 140 context->RaiseError(XML_ERROR_SYNTAX);
138 return 0.0; 141 return 0.0;
139 } 142 }
140 return value; 143 return value;
141 } 144 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_type.cc ('k') | chrome/browser/autofill/contact_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698