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

Side by Side Diff: remoting/host/pairing_registry_delegate_linux.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_linux.h" 5 #include "remoting/host/pairing_registry_delegate_linux.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 base::FilePath config_dir = remoting::GetConfigDir(); 152 base::FilePath config_dir = remoting::GetConfigDir();
153 return config_dir.Append(kRegistryDirectory); 153 return config_dir.Append(kRegistryDirectory);
154 } 154 }
155 155
156 void PairingRegistryDelegateLinux::SetRegistryPathForTesting( 156 void PairingRegistryDelegateLinux::SetRegistryPathForTesting(
157 const base::FilePath& registry_path) { 157 const base::FilePath& registry_path) {
158 registry_path_for_testing_ = registry_path; 158 registry_path_for_testing_ = registry_path;
159 } 159 }
160 160
161 std::unique_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() { 161 std::unique_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() {
162 return base::WrapUnique(new PairingRegistryDelegateLinux()); 162 return base::MakeUnique<PairingRegistryDelegateLinux>();
163 } 163 }
164 164
165 } // namespace remoting 165 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/mouse_cursor_monitor_proxy_unittest.cc ('k') | remoting/host/pairing_registry_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698