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

Unified Diff: content/child/url_response_body_consumer.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
Index: content/child/url_response_body_consumer.cc
diff --git a/content/child/url_response_body_consumer.cc b/content/child/url_response_body_consumer.cc
index 44b130028cab45385386599d6dca084f6a3f4fd5..fedc12efa5857942df5e6b75bd7396d495e15ce4 100644
--- a/content/child/url_response_body_consumer.cc
+++ b/content/child/url_response_body_consumer.cc
@@ -106,8 +106,8 @@ void URLResponseBodyConsumer::OnReadable(MojoResult unused) {
ResourceDispatcher::PendingRequestInfo* request_info =
resource_dispatcher_->GetPendingRequestInfo(request_id_);
DCHECK(request_info);
- request_info->peer->OnReceivedData(base::WrapUnique(
- new ReceivedData(static_cast<const char*>(buffer), available, this)));
+ request_info->peer->OnReceivedData(base::MakeUnique<ReceivedData>(
+ static_cast<const char*>(buffer), available, this));
}
}
« no previous file with comments | « content/child/shared_memory_received_data_factory.cc ('k') | content/child/url_response_body_consumer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698