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

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

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: Created 5 years 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.h" 5 #include "remoting/host/pairing_registry_delegate.h"
6 6
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 8
9 namespace remoting { 9 namespace remoting {
10 10
11 using protocol::PairingRegistry; 11 using protocol::PairingRegistry;
12 12
13 scoped_refptr<PairingRegistry> CreatePairingRegistry( 13 scoped_refptr<PairingRegistry> CreatePairingRegistry(
14 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { 14 scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
15 scoped_refptr<PairingRegistry> pairing_registry; 15 scoped_refptr<PairingRegistry> pairing_registry;
16 scoped_ptr<PairingRegistry::Delegate> delegate( 16 scoped_ptr<PairingRegistry::Delegate> delegate(
17 CreatePairingRegistryDelegate()); 17 CreatePairingRegistryDelegate());
18 if (delegate) { 18 if (delegate) {
19 pairing_registry = new PairingRegistry(task_runner, delegate.Pass()); 19 pairing_registry = new PairingRegistry(task_runner, std::move(delegate));
20 } 20 }
21 return pairing_registry; 21 return pairing_registry;
22 } 22 }
23 23
24 } // namespace remoting 24 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698