Index: ppapi/proxy/file_chooser_resource.cc |
diff --git a/ppapi/proxy/file_chooser_resource.cc b/ppapi/proxy/file_chooser_resource.cc |
index 9f949c0f4a863e1ddebfc4cd559dbef4bbf1469e..f1d045bac911baf3eab69d95959cefac76567386 100644 |
--- a/ppapi/proxy/file_chooser_resource.cc |
+++ b/ppapi/proxy/file_chooser_resource.cc |
@@ -78,8 +78,8 @@ void FileChooserResource::PopulateAcceptTypes( |
if (input.empty()) |
return; |
- std::vector<std::string> type_list; |
- base::SplitString(input, ',', &type_list); |
+ std::vector<std::string> type_list = base::SplitString( |
+ input, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
output->reserve(type_list.size()); |
for (size_t i = 0; i < type_list.size(); ++i) { |