| Index: chrome/browser/extensions/api/file_system/file_system_api_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc b/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc
|
| index 9a01de9b0bdbc5837a38932f9cb7051a2d3a7d5a..e6df024d23bb7bd3347623d97d3757f86d2334b8 100644
|
| --- a/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc
|
| +++ b/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc
|
| @@ -61,13 +61,15 @@ AcceptOption* BuildAcceptOption(const std::string& description,
|
| option->description.reset(new std::string(description));
|
|
|
| if (!mime_types.empty()) {
|
| - option->mime_types.reset(new std::vector<std::string>());
|
| - base::SplitString(mime_types, ',', option->mime_types.get());
|
| + option->mime_types.reset(new std::vector<std::string>(
|
| + base::SplitString(mime_types, ",",
|
| + base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)));
|
| }
|
|
|
| if (!extensions.empty()) {
|
| - option->extensions.reset(new std::vector<std::string>());
|
| - base::SplitString(extensions, ',', option->extensions.get());
|
| + option->extensions.reset(new std::vector<std::string>(
|
| + base::SplitString(extensions, ",",
|
| + base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)));
|
| }
|
|
|
| return option;
|
|
|