| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |