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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/proximity_auth/fake_connection.h" 5 #include "components/proximity_auth/fake_connection.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "components/proximity_auth/wire_message.h" 10 #include "components/proximity_auth/wire_message.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 void FakeConnection::SendMessageImpl(std::unique_ptr<WireMessage> message) { 45 void FakeConnection::SendMessageImpl(std::unique_ptr<WireMessage> message) {
46 CHECK(!current_message_); 46 CHECK(!current_message_);
47 current_message_ = std::move(message); 47 current_message_ = std::move(message);
48 } 48 }
49 49
50 std::unique_ptr<WireMessage> FakeConnection::DeserializeWireMessage( 50 std::unique_ptr<WireMessage> FakeConnection::DeserializeWireMessage(
51 bool* is_incomplete_message) { 51 bool* is_incomplete_message) {
52 *is_incomplete_message = false; 52 *is_incomplete_message = false;
53 return base::WrapUnique(new WireMessage(pending_payload_)); 53 return base::MakeUnique<WireMessage>(pending_payload_);
54 } 54 }
55 55
56 } // namespace proximity_auth 56 } // namespace proximity_auth
OLDNEW
« 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