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

Unified Diff: components/proximity_auth/fake_connection.cc

Issue 2250023005: 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: components/proximity_auth/fake_connection.cc
diff --git a/components/proximity_auth/fake_connection.cc b/components/proximity_auth/fake_connection.cc
index c8bca1df0f51a67054ba1e9913cffefb5d2c61d1..2c77bcac435c67949cd9e4796a5091272e5139f5 100644
--- a/components/proximity_auth/fake_connection.cc
+++ b/components/proximity_auth/fake_connection.cc
@@ -50,7 +50,7 @@ void FakeConnection::SendMessageImpl(std::unique_ptr<WireMessage> message) {
std::unique_ptr<WireMessage> FakeConnection::DeserializeWireMessage(
bool* is_incomplete_message) {
*is_incomplete_message = false;
- return base::WrapUnique(new WireMessage(pending_payload_));
+ return base::MakeUnique<WireMessage>(pending_payload_);
}
} // namespace proximity_auth
« no previous file with comments | « components/proximity_auth/device_to_device_secure_context_unittest.cc ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698