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

Side by Side Diff: remoting/protocol/secure_channel_factory.cc

Issue 1547603004: Include <utility> in files that use std::move() in remoting/protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/protocol/secure_channel_factory.h" 5 #include "remoting/protocol/secure_channel_factory.h"
6 6
7 #include <utility>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "remoting/protocol/authenticator.h" 10 #include "remoting/protocol/authenticator.h"
9 #include "remoting/protocol/channel_authenticator.h" 11 #include "remoting/protocol/channel_authenticator.h"
10 #include "remoting/protocol/p2p_stream_socket.h" 12 #include "remoting/protocol/p2p_stream_socket.h"
11 13
12 namespace remoting { 14 namespace remoting {
13 namespace protocol { 15 namespace protocol {
14 16
15 SecureChannelFactory::SecureChannelFactory( 17 SecureChannelFactory::SecureChannelFactory(
16 StreamChannelFactory* channel_factory, 18 StreamChannelFactory* channel_factory,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 AuthenticatorMap::iterator it = channel_authenticators_.find(name); 76 AuthenticatorMap::iterator it = channel_authenticators_.find(name);
75 DCHECK(it != channel_authenticators_.end()); 77 DCHECK(it != channel_authenticators_.end());
76 delete it->second; 78 delete it->second;
77 channel_authenticators_.erase(it); 79 channel_authenticators_.erase(it);
78 80
79 callback.Run(std::move(socket)); 81 callback.Run(std::move(socket));
80 } 82 }
81 83
82 } // namespace protocol 84 } // namespace protocol
83 } // namespace remoting 85 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/pseudotcp_channel_factory.cc ('k') | remoting/protocol/ssl_hmac_channel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698