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( |