Index: ppapi/proxy/file_chooser_resource.cc |
diff --git a/ppapi/proxy/file_chooser_resource.cc b/ppapi/proxy/file_chooser_resource.cc |
index 324f11b207f8897589233361806b3fc842aacd3e..5fc359c3af425b63abf5da69b880de88651f96d9 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) { |