Browse Source

Fix method call

Gabriel Handford 8 years ago
parent
commit
128feb17cb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      atom/common/platform_util_linux.cc
  2. 1 1
      atom/common/platform_util_win.cc

+ 1 - 1
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;
 }
 

+ 1 - 1
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;
 }