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 = |