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 6aa1608e1c09a4cf19d4c4c0760b0d8ca4f7a4f7..54c942ec29b9a23200d143295e46d0a491e2bb91 100644 |
--- a/content/browser/accessibility/browser_accessibility_win.cc |
+++ b/content/browser/accessibility/browser_accessibility_win.cc |
@@ -971,8 +971,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; |
@@ -990,8 +991,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; |