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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « ppapi/proxy/file_chooser_resource.cc ('k') | rlz/win/lib/machine_deal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 << ".";
« no previous file with comments | « ppapi/proxy/file_chooser_resource.cc ('k') | rlz/win/lib/machine_deal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698