Index: extensions/renderer/dispatcher.cc |
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc |
index 997185ef807a175a4cc7b05e5ed58936e212fc12..94bfb78bc1953fd006f6fcfcca63df3d3722c591 100644 |
--- a/extensions/renderer/dispatcher.cc |
+++ b/extensions/renderer/dispatcher.cc |
@@ -1347,8 +1347,8 @@ v8::Local<v8::Object> Dispatcher::GetOrCreateBindObjectIfAvailable( |
const std::string& api_name, |
std::string* bind_name, |
ScriptContext* context) { |
- std::vector<std::string> split; |
- base::SplitString(api_name, '.', &split); |
+ std::vector<std::string> split = base::SplitString( |
+ api_name, ".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
v8::Local<v8::Object> bind_object; |