summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/accessibility/accessibility_manager.cc
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-07-21 14:37:38 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-21 21:38:12 +0000
commitc6f82b158f374c172a46326699f03d97777faa8e (patch)
treec96472fa185ca20b22fad773cd195689e4097894 /chrome/browser/chromeos/accessibility/accessibility_manager.cc
parentdb484c3eff68c46ddf1530dd60441dba4614cb5c (diff)
downloadchromium_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/browser/chromeos/accessibility/accessibility_manager.cc')
-rw-r--r--chrome/browser/chromeos/accessibility/accessibility_manager.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
index 993d426..1a47aad 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -827,10 +827,9 @@ void AccessibilityManager::UpdateBrailleImeState() {
if (!profile_)
return;
PrefService* pref_service = profile_->GetPrefs();
- std::vector<std::string> preload_engines;
- base::SplitString(pref_service->GetString(prefs::kLanguagePreloadEngines),
- ',',
- &preload_engines);
+ std::vector<std::string> preload_engines =
+ base::SplitString(pref_service->GetString(prefs::kLanguagePreloadEngines),
+ ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::vector<std::string>::iterator it =
std::find(preload_engines.begin(),
preload_engines.end(),