Check if temp file was created before OnPageDone called
[chromium-blink-merge.git] / remoting / host / pairing_registry_delegate.cc
blobc7e49a0ddbd4d16badb54828690f228c3e98d22d
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
3 // found in the LICENSE file.
5 #include "remoting/host/pairing_registry_delegate.h"
7 #include "base/single_thread_task_runner.h"
9 namespace remoting {
11 using protocol::PairingRegistry;
13 scoped_refptr<PairingRegistry> CreatePairingRegistry(
14 scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
15 scoped_refptr<PairingRegistry> pairing_registry;
16 scoped_ptr<PairingRegistry::Delegate> delegate(
17 CreatePairingRegistryDelegate());
18 if (delegate) {
19 pairing_registry = new PairingRegistry(task_runner, delegate.Pass());
21 return pairing_registry;
24 } // namespace remoting