mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Fix method call
This commit is contained in:
committed by
Cheng Zhao
parent
3eb5f8d521
commit
128feb17cb
@@ -95,7 +95,7 @@ bool OpenExternal(const GURL& url, bool activate) {
|
||||
bool OpenExternal(const GURL& url, bool activate, const OpenExternalCallback& callback) {
|
||||
// TODO: Implement async open if callback is specified
|
||||
bool opened = openExternal(url, activate);
|
||||
callback(opened);
|
||||
callback.Run(opened);
|
||||
return opened;
|
||||
}
|
||||
|
||||
|
||||
@@ -323,7 +323,7 @@ bool OpenExternal(const base::string16& url, bool activate) {
|
||||
bool OpenExternal(const base::string16& url, bool activate, const OpenExternalCallback& callback) {
|
||||
// TODO: Implement async open if callback is specified
|
||||
bool opened = openExternal(url, activate);
|
||||
callback(opened);
|
||||
callback.Run(opened);
|
||||
return opened;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user