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

Unified Diff: content/browser/accessibility/dump_accessibility_browsertest_base.cc

Issue 1272823003: Update SplitString calls to new form (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 | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/dump_accessibility_browsertest_base.cc
diff --git a/content/browser/accessibility/dump_accessibility_browsertest_base.cc b/content/browser/accessibility/dump_accessibility_browsertest_base.cc
index f86f5d4f9a2f441aaef253374557288c85a7142a..60c5af63a0c9026b35f48f939bab2a17eebf1f1f 100644
--- a/content/browser/accessibility/dump_accessibility_browsertest_base.cc
+++ b/content/browser/accessibility/dump_accessibility_browsertest_base.cc
@@ -89,12 +89,9 @@ void DumpAccessibilityTestBase::ParseHtmlForExtraDirectives(
const std::string& test_html,
std::vector<Filter>* filters,
std::string* wait_for) {
- std::vector<std::string> lines;
- base::SplitString(test_html, '\n', &lines);
- for (std::vector<std::string>::const_iterator iter = lines.begin();
- iter != lines.end();
- ++iter) {
- const std::string& line = *iter;
+ for (const std::string& line :
+ base::SplitString(test_html, "\n", base::TRIM_WHITESPACE,
+ base::SPLIT_WANT_ALL)) {
const std::string& allow_empty_str =
AccessibilityTreeFormatter::GetAllowEmptyString();
const std::string& allow_str =
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698