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

Unified Diff: remoting/protocol/protocol_mock_objects.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/pseudotcp_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.cc
diff --git a/remoting/protocol/protocol_mock_objects.cc b/remoting/protocol/protocol_mock_objects.cc
index 26d6e496fc29309891031ab035901269a089ccfc..24c3abe1b1568ddec427c9d923d3251af20e635e 100644
--- a/remoting/protocol/protocol_mock_objects.cc
+++ b/remoting/protocol/protocol_mock_objects.cc
@@ -55,8 +55,8 @@ MockPairingRegistryDelegate::MockPairingRegistryDelegate() {
MockPairingRegistryDelegate::~MockPairingRegistryDelegate() {
}
-scoped_ptr<base::ListValue> MockPairingRegistryDelegate::LoadAll() {
- scoped_ptr<base::ListValue> result(new base::ListValue());
+std::unique_ptr<base::ListValue> MockPairingRegistryDelegate::LoadAll() {
+ std::unique_ptr<base::ListValue> result(new base::ListValue());
for (Pairings::const_iterator i = pairings_.begin(); i != pairings_.end();
++i) {
result->Append(i->second.ToValue().release());
@@ -91,7 +91,7 @@ bool MockPairingRegistryDelegate::Delete(const std::string& client_id) {
}
SynchronousPairingRegistry::SynchronousPairingRegistry(
- scoped_ptr<Delegate> delegate)
+ std::unique_ptr<Delegate> delegate)
: PairingRegistry(base::ThreadTaskRunnerHandle::Get(),
std::move(delegate)) {}
SynchronousPairingRegistry::~SynchronousPairingRegistry() {}
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/pseudotcp_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698