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

Side by Side Diff: base/libxml_utils.cc

Issue 10128002: Retrieve Windows performance assessment information from results files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
OLDNEW
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/common/libxml_utils.h" 5 #include "base/libxml_utils.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 12
13 #include "libxml/xmlreader.h" 13 #include "libxml/xmlreader.h"
14 14
15 std::string XmlStringToStdString(const xmlChar* xmlstring) { 15 std::string XmlStringToStdString(const xmlChar* xmlstring) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 writer_ = xmlNewTextWriterMemory(buffer_, 0); 144 writer_ = xmlNewTextWriterMemory(buffer_, 0);
145 xmlTextWriterSetIndent(writer_, 1); 145 xmlTextWriterSetIndent(writer_, 1);
146 xmlTextWriterStartDocument(writer_, NULL, NULL, NULL); 146 xmlTextWriterStartDocument(writer_, NULL, NULL, NULL);
147 } 147 }
148 148
149 void XmlWriter::StopWriting() { 149 void XmlWriter::StopWriting() {
150 xmlTextWriterEndDocument(writer_); 150 xmlTextWriterEndDocument(writer_);
151 xmlFreeTextWriter(writer_); 151 xmlFreeTextWriter(writer_);
152 writer_ = NULL; 152 writer_ = NULL;
153 } 153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698