Index: tools/gn/xml_element_writer.cc |
diff --git a/tools/gn/xml_element_writer.cc b/tools/gn/xml_element_writer.cc |
index a608ee305eec4ad32dc77903bbc2b9c6efffd818..fcf34b283cce6ad473f29f6a745be78ff4062e38 100644 |
--- a/tools/gn/xml_element_writer.cc |
+++ b/tools/gn/xml_element_writer.cc |
@@ -4,6 +4,8 @@ |
#include "tools/gn/xml_element_writer.h" |
+#include "base/memory/ptr_util.h" |
+ |
XmlAttributes::XmlAttributes() {} |
XmlAttributes::XmlAttributes(const base::StringPiece& attr_key, |
@@ -53,16 +55,16 @@ void XmlElementWriter::Text(const base::StringPiece& content) { |
out_ << content; |
} |
-scoped_ptr<XmlElementWriter> XmlElementWriter::SubElement( |
+std::unique_ptr<XmlElementWriter> XmlElementWriter::SubElement( |
const std::string& tag) { |
return SubElement(tag, XmlAttributes()); |
} |
-scoped_ptr<XmlElementWriter> XmlElementWriter::SubElement( |
+std::unique_ptr<XmlElementWriter> XmlElementWriter::SubElement( |
const std::string& tag, |
const XmlAttributes& attributes) { |
StartContent(true); |
- return make_scoped_ptr( |
+ return base::WrapUnique( |
new XmlElementWriter(out_, tag, attributes, indent_ + 2)); |
} |