blob: c7e49a0ddbd4d16badb54828690f228c3e98d22d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/pairing_registry_delegate.h"
#include "base/single_thread_task_runner.h"
namespace remoting {
using protocol::PairingRegistry;
scoped_refptr<PairingRegistry> CreatePairingRegistry(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
scoped_refptr<PairingRegistry> pairing_registry;
scoped_ptr<PairingRegistry::Delegate> delegate(
CreatePairingRegistryDelegate());
if (delegate) {
pairing_registry = new PairingRegistry(task_runner, delegate.Pass());
}
return pairing_registry;
}
} // namespace remoting
|