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

Unified Diff: content/browser/appcache/appcache_response.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/browser/appcache/appcache_response.cc
diff --git a/content/browser/appcache/appcache_response.cc b/content/browser/appcache/appcache_response.cc
index b5df22dea85d2871e6e441337b70571bd14f66a5..d4b0b96ebf2d39db4787d2d63e41180c2e555e5b 100644
--- a/content/browser/appcache/appcache_response.cc
+++ b/content/browser/appcache/appcache_response.cc
@@ -41,7 +41,7 @@ class WrappedPickleIOBuffer : public net::WrappedIOBuffer {
private:
~WrappedPickleIOBuffer() override {}
- scoped_ptr<const base::Pickle> pickle_;
+ std::unique_ptr<const base::Pickle> pickle_;
};
} // anon namespace
@@ -268,7 +268,7 @@ void AppCacheResponseReader::OnIOComplete(int result) {
} else if (info_buffer_.get()) {
// Deserialize the http info structure, ensuring we got headers.
base::Pickle pickle(buffer_->data(), result);
- scoped_ptr<net::HttpResponseInfo> info(new net::HttpResponseInfo);
+ std::unique_ptr<net::HttpResponseInfo> info(new net::HttpResponseInfo);
bool response_truncated = false;
if (!info->InitFromPickle(pickle, &response_truncated) ||
!info->headers.get()) {
« no previous file with comments | « content/browser/appcache/appcache_response.h ('k') | content/browser/appcache/appcache_response_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698