| Index: chrome/renderer/extensions/bindings_utils.h
|
| diff --git a/chrome/renderer/extensions/bindings_utils.h b/chrome/renderer/extensions/bindings_utils.h
|
| index 604cb2ca0d0de92be2c61421cde8397e3e88abbb..7354c7282cab5cb060f634a91d94518b7af169c2 100644
|
| --- a/chrome/renderer/extensions/bindings_utils.h
|
| +++ b/chrome/renderer/extensions/bindings_utils.h
|
| @@ -106,10 +106,12 @@ RenderView* GetRenderViewForCurrentContext();
|
|
|
| // Call the named javascript function with the given arguments in a context.
|
| // The function name should be reachable from the chromeHidden object, and can
|
| -// be a sub-property like "Port.dispatchOnMessage".
|
| -void CallFunctionInContext(v8::Handle<v8::Context> context,
|
| - const std::string& function_name, int argc,
|
| - v8::Handle<v8::Value>* argv);
|
| +// be a sub-property like "Port.dispatchOnMessage". Returns the result of
|
| +// the function call. If an exception is thrown an empty Handle will be
|
| +// returned.
|
| +v8::Handle<v8::Value> CallFunctionInContext(v8::Handle<v8::Context> context,
|
| + const std::string& function_name, int argc,
|
| + v8::Handle<v8::Value>* argv);
|
|
|
| } // namespace bindings_utils
|
|
|
|
|