Fix linting
authorGabriel Handford <gabrielh@gmail.com>
Fri, 14 Oct 2016 19:38:55 +0000 (12:38 -0700)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 17 Nov 2016 01:33:23 +0000 (10:33 +0900)
atom/common/api/atom_api_shell.cc
atom/common/platform_util.h
atom/common/platform_util_linux.cc
atom/common/platform_util_win.cc

index 0521453..894c85e 100644 (file)
@@ -60,7 +60,8 @@ bool OpenExternal(
   if (args->Length() >= 3) {
     v8::Local<v8::Value> peek = args->PeekNext();
     platform_util::OpenExternalCallback callback;
-    if (mate::Converter<platform_util::OpenExternalCallback>::FromV8(args->isolate(), peek, &callback)) {
+    if (mate::Converter<platform_util::OpenExternalCallback>::FromV8(
+      args->isolate(), peek, &callback)) {
       return platform_util::OpenExternal(url, activate, callback);
     }
     return false;
index 8f2c5b6..d7bb920 100644 (file)
@@ -5,8 +5,8 @@
 #ifndef ATOM_COMMON_PLATFORM_UTIL_H_
 #define ATOM_COMMON_PLATFORM_UTIL_H_
 
-#include "build/build_config.h"
 #include "base/callback_forward.h"
+#include "build/build_config.h"
 
 #if defined(OS_WIN)
 #include "base/strings/string16.h"
index 3aabe37..fd83217 100644 (file)
@@ -88,8 +88,9 @@ bool OpenExternal(const GURL& url, bool activate) {
     return XDGOpen(url.spec(), false);
 }
 
-bool OpenExternal(const GURL& url, bool activate, const OpenExternalCallback& callback) {
-  // TODO: Implement async open if callback is specified
+bool OpenExternal(const GURL& url, bool activate,
+  const OpenExternalCallback& callback) {
+  // TODO(gabriel): Implement async open if callback is specified
   bool opened = OpenExternal(url, activate);
   callback.Run(opened);
   return opened;
index f859193..69778fe 100644 (file)
@@ -316,8 +316,9 @@ bool OpenExternal(const base::string16& url, bool activate) {
   return true;
 }
 
-bool OpenExternal(const base::string16& url, bool activate, const OpenExternalCallback& callback) {
-  // TODO: Implement async open if callback is specified
+bool OpenExternal(const base::string16& url, bool activate,
+  const OpenExternalCallback& callback) {
+  // // TODO(gabriel): Implement async open if callback is specified
   bool opened = OpenExternal(url, activate);
   callback.Run(opened);
   return opened;