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

Unified Diff: components/proximity_auth/messenger_impl.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
« no previous file with comments | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/messenger_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/messenger_impl.cc
diff --git a/components/proximity_auth/messenger_impl.cc b/components/proximity_auth/messenger_impl.cc
index 74975180f39208ff1501cb94ad2346bc0ff6b13f..1a0d0279b99338c044690c54009780d7205f3c96 100644
--- a/components/proximity_auth/messenger_impl.cc
+++ b/components/proximity_auth/messenger_impl.cc
@@ -177,7 +177,7 @@ void MessengerImpl::ProcessMessageQueue() {
}
void MessengerImpl::OnMessageEncoded(const std::string& encoded_message) {
- connection_->SendMessage(base::WrapUnique(new WireMessage(encoded_message)));
+ connection_->SendMessage(base::MakeUnique<WireMessage>(encoded_message));
}
void MessengerImpl::OnMessageDecoded(const std::string& decoded_message) {
« no previous file with comments | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/messenger_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698