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

Unified Diff: storage/browser/blob/blob_async_builder_host.cc

Issue 2254183002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | storage/browser/fileapi/isolated_file_system_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_async_builder_host.cc
diff --git a/storage/browser/blob/blob_async_builder_host.cc b/storage/browser/blob/blob_async_builder_host.cc
index c30b3833e902dff55d669f66baff37664b156c47..a73d9d683232ff5ca6772e8fe7227c5afe1f9d22 100644
--- a/storage/browser/blob/blob_async_builder_host.cc
+++ b/storage/browser/blob/blob_async_builder_host.cc
@@ -108,8 +108,8 @@ BlobTransportResult BlobAsyncBuilderHost::RegisterBlobUUID(
}
handles.emplace_back(std::move(handle));
}
- async_blob_map_[uuid] = base::WrapUnique(
- new BlobBuildingState(uuid, referenced_blob_uuids, &handles));
+ async_blob_map_[uuid] = base::MakeUnique<BlobBuildingState>(
+ uuid, referenced_blob_uuids, &handles);
return BlobTransportResult::DONE;
}
@@ -404,7 +404,7 @@ BlobTransportResult BlobAsyncBuilderHost::ContinueBlobMemoryRequests(
state->request_memory_callback.Run(
std::move(byte_requests), std::move(shared_memory),
- base::WrapUnique(new std::vector<base::File>()));
+ base::MakeUnique<std::vector<base::File>>());
return BlobTransportResult::PENDING_RESPONSES;
}
« no previous file with comments | « no previous file | storage/browser/fileapi/isolated_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698