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 deb97efd88b3e7e093c69b205e3d321c740a3cfe..277af2c68e24c0804c6b31ce27d64247fa18620c 100644 |
--- a/content/browser/accessibility/browser_accessibility_win.cc |
+++ b/content/browser/accessibility/browser_accessibility_win.cc |
@@ -969,8 +969,9 @@ STDMETHODIMP BrowserAccessibilityWin::get_appName(BSTR* app_name) { |
// 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(), '/', &product_components); |
+ std::vector<std::string> product_components = base::SplitString( |
+ GetContentClient()->GetProduct(), "/", |
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
DCHECK_EQ(2U, product_components.size()); |
if (product_components.size() != 2) |
return E_FAIL; |
@@ -988,8 +989,9 @@ STDMETHODIMP BrowserAccessibilityWin::get_appVersion(BSTR* app_version) { |
// 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(), '/', &product_components); |
+ std::vector<std::string> product_components = base::SplitString( |
+ GetContentClient()->GetProduct(), "/", |
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
DCHECK_EQ(2U, product_components.size()); |
if (product_components.size() != 2) |
return E_FAIL; |