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

Unified Diff: content/child/shared_memory_received_data_factory.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/shared_memory_received_data_factory.cc
diff --git a/content/child/shared_memory_received_data_factory.cc b/content/child/shared_memory_received_data_factory.cc
index beaa48f7e32e94b1bd8c8e2fa2df9922d17da36e..5b62db8c75a1e85e10731b5385f5d78985064570 100644
--- a/content/child/shared_memory_received_data_factory.cc
+++ b/content/child/shared_memory_received_data_factory.cc
@@ -75,8 +75,8 @@ SharedMemoryReceivedDataFactory::Create(int offset,
const char* payload = start + offset;
TicketId id = id_++;
- return base::WrapUnique(new SharedMemoryReceivedData(
- payload, length, encoded_data_length, encoded_body_length, this, id));
+ return base::MakeUnique<SharedMemoryReceivedData>(
+ payload, length, encoded_data_length, encoded_body_length, this, id);
}
void SharedMemoryReceivedDataFactory::Stop() {
« no previous file with comments | « content/child/shared_memory_data_consumer_handle_unittest.cc ('k') | content/child/url_response_body_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698