Index: ui/gl/gl_implementation.cc |
diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc |
index 522386a113b6ae95baaff4a1847311b7bad878bb..66f228243fc3f92927ce81112a22e0d3c039f825 100644 |
--- a/ui/gl/gl_implementation.cc |
+++ b/ui/gl/gl_implementation.cc |
@@ -163,8 +163,8 @@ std::string FilterGLExtensionList( |
if (extensions == NULL) |
return ""; |
- std::vector<std::string> extension_vec; |
- base::SplitString(extensions, ' ', &extension_vec); |
+ std::vector<std::string> extension_vec = base::SplitString( |
+ extensions, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
auto is_disabled = [&disabled_extensions](const std::string& ext) { |
return std::find(disabled_extensions.begin(), disabled_extensions.end(), |