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

Side by Side Diff: remoting/host/pairing_registry_delegate_win.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "remoting/host/pairing_registry_delegate_win.h" 5 #include "remoting/host/pairing_registry_delegate_win.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 result != ERROR_PATH_NOT_FOUND) { 259 result != ERROR_PATH_NOT_FOUND) {
260 SetLastError(result); 260 SetLastError(result);
261 PLOG(ERROR) << "Cannot delete pairing entry '" << client_id << "'"; 261 PLOG(ERROR) << "Cannot delete pairing entry '" << client_id << "'";
262 return false; 262 return false;
263 } 263 }
264 264
265 return true; 265 return true;
266 } 266 }
267 267
268 std::unique_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() { 268 std::unique_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() {
269 return base::WrapUnique(new PairingRegistryDelegateWin()); 269 return base::MakeUnique<PairingRegistryDelegateWin>();
270 } 270 }
271 271
272 } // namespace remoting 272 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/pairing_registry_delegate_linux.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698