From 128feb17cb1751adbd452bb73b46cb6488d8a783 Mon Sep 17 00:00:00 2001 From: Gabriel Handford Date: Thu, 13 Oct 2016 19:16:47 -0700 Subject: [PATCH] Fix method call --- atom/common/platform_util_linux.cc | 2 +- atom/common/platform_util_win.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/common/platform_util_linux.cc b/atom/common/platform_util_linux.cc index 8cfa5160385f..bf3c3b272b1f 100644 --- a/atom/common/platform_util_linux.cc +++ b/atom/common/platform_util_linux.cc @@ -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; } diff --git a/atom/common/platform_util_win.cc b/atom/common/platform_util_win.cc index 7eb3c470f735..dd0121b8f726 100644 --- a/atom/common/platform_util_win.cc +++ b/atom/common/platform_util_win.cc @@ -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; }