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

Unified Diff: content/child/shared_memory_data_consumer_handle.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_data_consumer_handle.cc
diff --git a/content/child/shared_memory_data_consumer_handle.cc b/content/child/shared_memory_data_consumer_handle.cc
index 3c9b7a26ff8e65e81374fbc3a9524c8323ac5d96..7f2ef4813aca8471953b33656a778d568fc12f01 100644
--- a/content/child/shared_memory_data_consumer_handle.cc
+++ b/content/child/shared_memory_data_consumer_handle.cc
@@ -311,9 +311,9 @@ void SharedMemoryDataConsumerHandle::Writer::AddData(
std::unique_ptr<RequestPeer::ThreadSafeReceivedData> data_to_pass;
if (mode_ == kApplyBackpressure) {
data_to_pass =
- base::WrapUnique(new DelegateThreadSafeReceivedData(std::move(data)));
+ base::MakeUnique<DelegateThreadSafeReceivedData>(std::move(data));
} else {
- data_to_pass = base::WrapUnique(new FixedReceivedData(data.get()));
+ data_to_pass = base::MakeUnique<FixedReceivedData>(data.get());
}
context_->Push(std::move(data_to_pass));
}

Powered by Google App Engine
This is Rietveld 408576698