Fix win/linux compile (again)
This commit is contained in:
parent
f0ca9dff81
commit
5b260dbee3
2 changed files with 2 additions and 0 deletions
|
@ -93,6 +93,7 @@ void OpenExternal(const GURL& url, bool activate,
|
||||||
const OpenExternalCallback& callback) {
|
const OpenExternalCallback& callback) {
|
||||||
// TODO(gabriel): Implement async open if callback is specified
|
// TODO(gabriel): Implement async open if callback is specified
|
||||||
bool opened = OpenExternal(url, activate);
|
bool opened = OpenExternal(url, activate);
|
||||||
|
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
||||||
if (!opened) {
|
if (!opened) {
|
||||||
callback.Run(v8::Exception::Error(
|
callback.Run(v8::Exception::Error(
|
||||||
v8::String::NewFromUtf8(isolate, "Failed to open")));
|
v8::String::NewFromUtf8(isolate, "Failed to open")));
|
||||||
|
|
|
@ -320,6 +320,7 @@ void OpenExternal(const base::string16& url, bool activate,
|
||||||
const OpenExternalCallback& callback) {
|
const OpenExternalCallback& callback) {
|
||||||
// TODO(gabriel): Implement async open if callback is specified
|
// TODO(gabriel): Implement async open if callback is specified
|
||||||
bool opened = OpenExternal(url, activate);
|
bool opened = OpenExternal(url, activate);
|
||||||
|
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
||||||
if (!opened) {
|
if (!opened) {
|
||||||
callback.Run(v8::Exception::Error(
|
callback.Run(v8::Exception::Error(
|
||||||
v8::String::NewFromUtf8(isolate, "Failed to open")));
|
v8::String::NewFromUtf8(isolate, "Failed to open")));
|
||||||
|
|
Loading…
Reference in a new issue