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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api_unittest.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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;
« no previous file with comments | « chrome/browser/extensions/api/commands/command_service.cc ('k') | chrome/browser/extensions/api/i18n/i18n_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698