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

Side by Side Diff: remoting/host/security_key/fake_security_key_ipc_server.cc

Issue 2714053003: Fix GCC build for target 'all' (Closed)
Patch Set: #if defined(__GNUC__) Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/security_key/fake_security_key_ipc_server.h" 5 #include "remoting/host/security_key/fake_security_key_ipc_server.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 base::TimeDelta initial_connect_timeout, 123 base::TimeDelta initial_connect_timeout,
124 const SecurityKeyAuthHandler::SendMessageCallback& send_message_callback, 124 const SecurityKeyAuthHandler::SendMessageCallback& send_message_callback,
125 const base::Closure& connect_callback, 125 const base::Closure& connect_callback,
126 const base::Closure& done_callback) { 126 const base::Closure& done_callback) {
127 auto fake_ipc_server = base::MakeUnique<FakeSecurityKeyIpcServer>( 127 auto fake_ipc_server = base::MakeUnique<FakeSecurityKeyIpcServer>(
128 connection_id, client_session_details, initial_connect_timeout, 128 connection_id, client_session_details, initial_connect_timeout,
129 send_message_callback, connect_callback, done_callback); 129 send_message_callback, connect_callback, done_callback);
130 130
131 ipc_server_map_[connection_id] = fake_ipc_server->AsWeakPtr(); 131 ipc_server_map_[connection_id] = fake_ipc_server->AsWeakPtr();
132 132
133 return fake_ipc_server; 133 return std::move(fake_ipc_server);
134 } 134 }
135 135
136 base::WeakPtr<FakeSecurityKeyIpcServer> 136 base::WeakPtr<FakeSecurityKeyIpcServer>
137 FakeSecurityKeyIpcServerFactory::GetIpcServerObject(int connection_id) { 137 FakeSecurityKeyIpcServerFactory::GetIpcServerObject(int connection_id) {
138 return ipc_server_map_[connection_id]; 138 return ipc_server_map_[connection_id];
139 } 139 }
140 140
141 } // namespace remoting 141 } // namespace remoting
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/windowed_filter.h ('k') | testing/libfuzzer/tests/fuzzer_launcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698