Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: ppapi/proxy/file_chooser_resource.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698