]> khamidou — GitHub mirrors - electron.git/commitdiff
Infinite Linting
authorPaul Betts <paul@paulbetts.org>
Tue, 20 Oct 2015 22:00:10 +0000 (15:00 -0700)
committerPaul Betts <paul@paulbetts.org>
Tue, 20 Oct 2015 22:00:10 +0000 (15:00 -0700)
atom/browser/api/atom_api_app.cc
atom/browser/api/atom_api_app.h
atom/browser/atom_process_singleton.h
atom/browser/browser.cc
atom/browser/browser.h
atom/common/native_mate_converters/command_line_converter.h

index f3955d2d03ab747bdfb12a219a9a70eab70da075..b16e3460650fa2c4c8802f601424be8babb37985 100644 (file)
@@ -276,11 +276,12 @@ bool App::MakeSingleInstance(v8::Local<v8::Function> callback) {
   browser->InitializeSingleInstance();
 
   ProcessSingleton::NotificationCallback cb;
-  mate::Converter<ProcessSingleton::NotificationCallback>::FromV8(isolate(), single_instance_callback_, &cb);
+  mate::Converter<ProcessSingleton::NotificationCallback>::FromV8(
+      isolate(), single_instance_callback_, &cb);
 
   browser->SetSingleInstanceCallback(cb);
 
-  switch(browser->GetSingleInstanceResult()) {
+  switch (browser->GetSingleInstanceResult()) {
     case ProcessSingleton::NotifyResult::PROCESS_NONE:
       return false;
     case ProcessSingleton::NotifyResult::LOCK_ERROR:
index 3dafdbc2849080439959ae6f15fa4a122f18f6eb..b10b40e5c9675cff5fbc8a76bfdab12742fb8787 100644 (file)
@@ -71,7 +71,7 @@ class App : public mate::EventEmitter,
   void AllowNTLMCredentialsForAllDomains(bool should_allow);
 
   bool MakeSingleInstance(v8::Local<v8::Function> callback);
-  
+
   std::string GetLocale();
   v8::Local<v8::Value> DefaultSession(v8::Isolate* isolate);
 
index 56548621436cea877cbce614154077b4f040cdbe..89feeaecb37c72a888b8cad542011d2094fce259 100644 (file)
@@ -16,7 +16,7 @@ class AtomProcessSingleton {
   AtomProcessSingleton(
       const base::FilePath& user_data_dir,
       const ProcessSingleton::NotificationCallback& notification_callback);
-      
+
   ~AtomProcessSingleton();
 
   // Notify another process, if available. Otherwise sets ourselves as the
index 5c12a0d338f80dfd963bf789c393ba0f68c16845..4308395eb7140dbcfec6ff744d199c61e355bf36 100644 (file)
@@ -117,7 +117,7 @@ void Browser::WillFinishLaunching() {
 
 void Browser::DidFinishLaunching() {
   is_ready_ = true;
-  process_singleton_->Unlock()  ;
+  process_singleton_->Unlock();
   FOR_EACH_OBSERVER(BrowserObserver, observers_, OnFinishLaunching());
 }
 
@@ -174,7 +174,8 @@ ProcessSingleton::NotifyResult Browser::GetSingleInstanceResult() {
   return process_notify_result_;
 }
 
-void Browser::SetSingleInstanceCallback(ProcessSingleton::NotificationCallback callback) {
+void Browser::SetSingleInstanceCallback(
+    ProcessSingleton::NotificationCallback callback) {
   process_notify_callback_ = callback;
   process_notify_callback_set_ = true;
 }
index 9113c58dd12dd3d02422f6b28ad9803181ebec24..1ac4d03e095ae86b24116f831c77bcfdbb00d77b 100644 (file)
@@ -68,7 +68,8 @@ class Browser : public WindowListObserver {
 
   void InitializeSingleInstance();
   ProcessSingleton::NotifyResult GetSingleInstanceResult();
-  void SetSingleInstanceCallback(ProcessSingleton::NotificationCallback callback);
+  void SetSingleInstanceCallback(
+      ProcessSingleton::NotificationCallback callback);
 
 #if defined(OS_MACOSX)
   // Bounce the dock icon.
index 7941c9a0968bb349db79360a5d5f01792249be02..a704ed7e92b7d7b82248c55e51a5fc625d0c7e49 100644 (file)
@@ -16,13 +16,14 @@ template<>
 struct Converter<base::CommandLine> {
   static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
                                     const base::CommandLine& val) {
-    return Converter<base::CommandLine::StringType>::ToV8(isolate, val.GetCommandLineString());
+    return Converter<base::CommandLine::StringType>::ToV8(
+        isolate, val.GetCommandLineString());
   }
   static bool FromV8(v8::Isolate* isolate,
                      v8::Local<v8::Value> val,
                      base::CommandLine* out) {
     base::FilePath::StringType path;
-    
+
     if (Converter<base::FilePath::StringType>::FromV8(isolate, val, &path)) {
       *out = base::CommandLine(base::FilePath(path));
       return true;
@@ -34,4 +35,4 @@ struct Converter<base::CommandLine> {
 
 }  // namespace mate
 
-#endif  // ATOM_COMMON_NATIVE_MATE_CONVERTERS_FILE_PATH_CONVERTER_H_
+#endif  // ATOM_COMMON_NATIVE_MATE_CONVERTERS_COMMAND_LINE_CONVERTER_H_