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..fc8ae99bacf8e969ec5553302c8efdc9631e7cc5 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) { |