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

Unified Diff: content/public/test/mock_blob_url_request_context.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
« no previous file with comments | « content/public/test/mock_blob_url_request_context.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_blob_url_request_context.cc
diff --git a/content/public/test/mock_blob_url_request_context.cc b/content/public/test/mock_blob_url_request_context.cc
index 7ba9cbe1ccf2855c0c2d111b47340509e22ba4dc..ff613e99b60cd54c4b4701ad1c2bdf965c6fd63a 100644
--- a/content/public/test/mock_blob_url_request_context.cc
+++ b/content/public/test/mock_blob_url_request_context.cc
@@ -4,6 +4,7 @@
#include "content/public/test/mock_blob_url_request_context.h"
+#include "base/memory/ptr_util.h"
#include "base/thread_task_runner_handle.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_storage_context.h"
@@ -17,7 +18,7 @@ MockBlobURLRequestContext::MockBlobURLRequestContext(
: blob_storage_context_(new storage::BlobStorageContext) {
// Job factory owns the protocol handler.
job_factory_.SetProtocolHandler(
- "blob", make_scoped_ptr(new storage::BlobProtocolHandler(
+ "blob", base::WrapUnique(new storage::BlobProtocolHandler(
blob_storage_context_.get(), file_system_context,
base::ThreadTaskRunnerHandle::Get())));
set_job_factory(&job_factory_);
@@ -43,7 +44,7 @@ ScopedTextBlob::ScopedTextBlob(
ScopedTextBlob::~ScopedTextBlob() {
}
-scoped_ptr<storage::BlobDataHandle> ScopedTextBlob::GetBlobDataHandle() {
+std::unique_ptr<storage::BlobDataHandle> ScopedTextBlob::GetBlobDataHandle() {
return context_->GetBlobDataFromUUID(blob_id_);
}
« no previous file with comments | « content/public/test/mock_blob_url_request_context.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698