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

Unified Diff: third_party/crashpad/crashpad/util/net/http_multipart_builder.cc

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/util/net/http_multipart_builder.cc
diff --git a/third_party/crashpad/crashpad/util/net/http_multipart_builder.cc b/third_party/crashpad/crashpad/util/net/http_multipart_builder.cc
index f42185696fe8f2b0952540d955bb2afec9f5c3ce..46f6f09099c9556e2f6e96f83496619f22b7a0c4 100644
--- a/third_party/crashpad/crashpad/util/net/http_multipart_builder.cc
+++ b/third_party/crashpad/crashpad/util/net/http_multipart_builder.cc
@@ -149,7 +149,7 @@ void HTTPMultipartBuilder::SetFileAttachment(
file_attachments_[key] = attachment;
}
-scoped_ptr<HTTPBodyStream> HTTPMultipartBuilder::GetBodyStream() {
+std::unique_ptr<HTTPBodyStream> HTTPMultipartBuilder::GetBodyStream() {
// The objects inserted into this vector will be owned by the returned
// CompositeHTTPBodyStream. Take care to not early-return without deleting
// this memory.
@@ -179,7 +179,7 @@ scoped_ptr<HTTPBodyStream> HTTPMultipartBuilder::GetBodyStream() {
streams.push_back(
new StringHTTPBodyStream("--" + boundary_ + "--" + kCRLF));
- return scoped_ptr<HTTPBodyStream>(new CompositeHTTPBodyStream(streams));
+ return std::unique_ptr<HTTPBodyStream>(new CompositeHTTPBodyStream(streams));
}
HTTPHeaders::value_type HTTPMultipartBuilder::GetContentType() const {

Powered by Google App Engine
This is Rietveld 408576698