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

Unified Diff: gin/modules/file_module_provider.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 | « device/hid/hid_service_linux.cc ('k') | jingle/notifier/communicator/single_login_attempt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/modules/file_module_provider.cc
diff --git a/gin/modules/file_module_provider.cc b/gin/modules/file_module_provider.cc
index b8465ae6368ba61f38045feb04d3f82d96632266..1568378ee604240cfb1a144fe772c89b59fc0d07 100644
--- a/gin/modules/file_module_provider.cc
+++ b/gin/modules/file_module_provider.cc
@@ -20,8 +20,8 @@ void AttempToLoadModule(const base::WeakPtr<Runner>& runner,
if (!runner)
return;
- std::vector<std::string> components;
- base::SplitString(id, '/', &components);
+ std::vector<std::string> components = base::SplitString(
+ id, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
base::FilePath path;
for (size_t i = 0; i < components.size(); ++i) {
« no previous file with comments | « device/hid/hid_service_linux.cc ('k') | jingle/notifier/communicator/single_login_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698