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

Unified Diff: chrome/browser/spellchecker/spellcheck_service_unittest.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « chrome/browser/spellchecker/spellcheck_service.cc ('k') | chrome/browser/ssl/ssl_error_classification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker/spellcheck_service_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_service_unittest.cc b/chrome/browser/spellchecker/spellcheck_service_unittest.cc
index 5a297e5215333214f953de1f4f64fb3af2fba23e..ad781efb6440763ac34156175cdcb01ed3ad5da4 100644
--- a/chrome/browser/spellchecker/spellcheck_service_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_service_unittest.cc
@@ -24,10 +24,12 @@ struct SpellcheckLanguageTestCase {
: accept_languages(accept_languages),
num_expected_enabled_spellcheck_languages(
num_expected_enabled_spellcheck_languages) {
- base::SplitString(unsplit_spellcheck_dictionaries, ',',
- &spellcheck_dictionaries);
- base::SplitString(unsplit_expected_languages, ',',
- &expected_spellcheck_languages);
+ spellcheck_dictionaries = base::SplitString(
+ unsplit_spellcheck_dictionaries, ",",
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
+ expected_spellcheck_languages = base::SplitString(
+ unsplit_expected_languages, ",",
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
}
~SpellcheckLanguageTestCase() {}
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_service.cc ('k') | chrome/browser/ssl/ssl_error_classification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698