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

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

Issue 1278973003: Revert of 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
Index: content/browser/accessibility/browser_accessibility_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index 277af2c68e24c0804c6b31ce27d64247fa18620c..deb97efd88b3e7e093c69b205e3d321c740a3cfe 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -969,9 +969,8 @@
// GetProduct() returns a string like "Chrome/aa.bb.cc.dd", split out
// the part before the "/".
- std::vector<std::string> product_components = base::SplitString(
- GetContentClient()->GetProduct(), "/",
- base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
+ std::vector<std::string> product_components;
+ base::SplitString(GetContentClient()->GetProduct(), '/', &product_components);
DCHECK_EQ(2U, product_components.size());
if (product_components.size() != 2)
return E_FAIL;
@@ -989,9 +988,8 @@
// GetProduct() returns a string like "Chrome/aa.bb.cc.dd", split out
// the part after the "/".
- std::vector<std::string> product_components = base::SplitString(
- GetContentClient()->GetProduct(), "/",
- base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
+ std::vector<std::string> product_components;
+ base::SplitString(GetContentClient()->GetProduct(), '/', &product_components);
DCHECK_EQ(2U, product_components.size());
if (product_components.size() != 2)
return E_FAIL;
« no previous file with comments | « base/trace_event/trace_config.cc ('k') | content/browser/accessibility/dump_accessibility_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698