Fix method call

This commit is contained in:
Gabriel Handford 2016-10-13 19:16:47 -07:00 committed by Cheng Zhao
parent 3eb5f8d521
commit 128feb17cb
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}