diff options
author | brettw <brettw@chromium.org> | 2015-07-21 14:37:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-21 21:38:12 +0000 |
commit | c6f82b158f374c172a46326699f03d97777faa8e (patch) | |
tree | c96472fa185ca20b22fad773cd195689e4097894 /chrome/installer/gcapi | |
parent | db484c3eff68c46ddf1530dd60441dba4614cb5c (diff) | |
download | chromium_src-c6f82b158f374c172a46326699f03d97777faa8e.zip chromium_src-c6f82b158f374c172a46326699f03d97777faa8e.tar.gz chromium_src-c6f82b158f374c172a46326699f03d97777faa8e.tar.bz2 |
Update SplitString calls in chrome.
In many places that iterated over the results, the code was changed to use a range-based for loop over the result of the SplitStirng call.
Review URL: https://codereview.chromium.org/1240183002
Cr-Commit-Position: refs/heads/master@{#339753}
Diffstat (limited to 'chrome/installer/gcapi')
-rw-r--r-- | chrome/installer/gcapi/gcapi_omaha_experiment.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/installer/gcapi/gcapi_omaha_experiment.cc b/chrome/installer/gcapi/gcapi_omaha_experiment.cc index a790a26..1724b97 100644 --- a/chrome/installer/gcapi/gcapi_omaha_experiment.cc +++ b/chrome/installer/gcapi/gcapi_omaha_experiment.cc @@ -42,9 +42,10 @@ bool SetExperimentLabel(const wchar_t* brand_code, } // Split the original labels by the label separator. - std::vector<base::string16> entries; - base::SplitString(original_labels, google_update::kExperimentLabelSeparator, - &entries); + std::vector<base::string16> entries = base::SplitString( + original_labels, + base::string16(1, google_update::kExperimentLabelSeparator), + base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); // Keep all labels, but the one we want to add/replace. base::string16 label_and_separator(label); |