Index: remoting/client/plugin/chromoting_instance.cc |
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc |
index 54c6a6102d7b33bc790948ce21aff2953c219793..fb29170985cc6a7998967950ed92941b57e0725e 100644 |
--- a/remoting/client/plugin/chromoting_instance.cc |
+++ b/remoting/client/plugin/chromoting_instance.cc |
@@ -552,8 +552,10 @@ void ChromotingInstance::HandleConnect(const base::DictionaryValue& data) { |
// Read and parse list of experiments. |
std::string experiments; |
std::vector<std::string> experiments_list; |
- if (data.GetString("experiments", &experiments)) |
- base::SplitString(experiments, ' ', &experiments_list); |
+ if (data.GetString("experiments", &experiments)) { |
+ experiments_list = base::SplitString( |
+ experiments, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
+ } |
VLOG(0) << "Connecting to " << host_jid |
<< ". Local jid: " << local_jid << "."; |