Fix win/linux compile

This commit is contained in:
Gabriel Handford 2016-11-02 16:34:56 -07:00 committed by Cheng Zhao
parent 9382d48708
commit f0ca9dff81
2 changed files with 4 additions and 4 deletions

View file

@ -95,9 +95,9 @@ void OpenExternal(const GURL& url, bool activate,
bool opened = OpenExternal(url, activate); bool opened = OpenExternal(url, activate);
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")));
} else { } else {
callback.Run(v8::Null(isolate);) callback.Run(v8::Null(isolate));
} }
} }

View file

@ -322,9 +322,9 @@ void OpenExternal(const base::string16& url, bool activate,
bool opened = OpenExternal(url, activate); bool opened = OpenExternal(url, activate);
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")));
} else { } else {
callback.Run(v8::Null(isolate);) callback.Run(v8::Null(isolate));
} }
} }