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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2254173002: 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 | « content/child/push_messaging/push_provider.cc ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index ba2e76be7369227031660b7d64e8c7b19dca6659..36ea936369c17a39cf5ae05e8eedaa17d60bdfae 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -639,9 +639,9 @@ int ResourceDispatcher::StartAsync(
// Compute a unique request_id for this renderer process.
int request_id = MakeRequestID();
- pending_requests_[request_id] = base::WrapUnique(new PendingRequestInfo(
+ pending_requests_[request_id] = base::MakeUnique<PendingRequestInfo>(
std::move(peer), request->resource_type, request->origin_pid,
- frame_origin, request->url, request_info.download_to_file));
+ frame_origin, request->url, request_info.download_to_file);
if (resource_scheduling_filter_.get() && request_info.loading_task_runner) {
resource_scheduling_filter_->SetRequestIdTaskRunner(
« no previous file with comments | « content/child/push_messaging/push_provider.cc ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698