|
@@ -320,6 +320,7 @@ void OpenExternal(const base::string16& url, bool activate,
|
|
|
const OpenExternalCallback& callback) {
|
|
|
// TODO(gabriel): Implement async open if callback is specified
|
|
|
bool opened = OpenExternal(url, activate);
|
|
|
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
|
|
if (!opened) {
|
|
|
callback.Run(v8::Exception::Error(
|
|
|
v8::String::NewFromUtf8(isolate, "Failed to open")));
|