Index: extensions/renderer/script_context.cc |
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc |
index f384f0cb6dc7d0a89891734accef04fafef3035f..ac87f7098f8fb3f03c2f59e845877f895e74246e 100644 |
--- a/extensions/renderer/script_context.cc |
+++ b/extensions/renderer/script_context.cc |
@@ -176,7 +176,7 @@ content::RenderFrame* ScriptContext::GetRenderFrame() const { |
} |
v8::Local<v8::Value> ScriptContext::CallFunction( |
- v8::Local<v8::Function> function, |
+ const v8::Local<v8::Function>& function, |
int argc, |
v8::Local<v8::Value> argv[]) const { |
v8::EscapableHandleScope handle_scope(isolate()); |
@@ -196,6 +196,11 @@ v8::Local<v8::Value> ScriptContext::CallFunction( |
function, global, argc, argv))); |
} |
+v8::Local<v8::Value> ScriptContext::CallFunction( |
+ const v8::Local<v8::Function>& function) const { |
+ return CallFunction(function, 0, nullptr); |
+} |
+ |
Feature::Availability ScriptContext::GetAvailability( |
const std::string& api_name) { |
// Hack: Hosted apps should have the availability of messaging APIs based on |