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

Unified Diff: remoting/protocol/data_channel_manager.cc

Issue 2967793002: [Chromoting] Remove DataChannelManagerCallbacks constructor parameter of ClientSession (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/data_channel_manager.cc
diff --git a/remoting/protocol/data_channel_manager.cc b/remoting/protocol/data_channel_manager.cc
index c8f0782f38dafcef4d286a3b5bc5ed3d331bf49c..aa2914ed5ce4849f479a49ca0dfcbeccf00e74ab 100644
--- a/remoting/protocol/data_channel_manager.cc
+++ b/remoting/protocol/data_channel_manager.cc
@@ -20,7 +20,7 @@ void DataChannelManager::RegisterCreateHandlerCallback(
CreateHandlerCallback constructor) {
DCHECK(!prefix.empty());
DCHECK(constructor);
- constructors_.push_back(std::make_pair(prefix, constructor));
+ constructors_.push_back(std::make_pair(prefix, std::move(constructor)));
jarhar 2017/07/05 17:51:42 just curious, what effect does using std::move hav
Hzj_jie 2017/07/05 18:34:31 It does not impact the logic, but only the perform
}
bool DataChannelManager::OnIncomingDataChannel(

Powered by Google App Engine
This is Rietveld 408576698