Bug 1276318, part 1 - Fix leading tabs in ipc/glue. r=billm
authorAndrew McCreight <continuation@gmail.com>
Fri, 27 May 2016 14:54:30 -0700
changeset 299391 94308fa7a31673a90a9741f16a1dd7a6f268bafc
parent 299390 5c73a69cb9eb5aab005d31d601f69abaa792390a
child 299392 74f12ae5dbc55caabb5bd546c6f12ce1ed282fac
push id77548
push useramccreight@mozilla.com
push dateFri, 27 May 2016 21:54:44 +0000
treeherdermozilla-inbound@74f12ae5dbc5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs1276318
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1276318, part 1 - Fix leading tabs in ipc/glue. r=billm Also remove a weird mode line so the script can fix it more easily in the next part.
ipc/glue/BackgroundImpl.cpp
ipc/glue/BrowserProcessSubThread.h
ipc/glue/GeckoChildProcessHost.cpp
ipc/glue/GeckoChildProcessHost.h
ipc/glue/MessagePump.cpp
--- a/ipc/glue/BackgroundImpl.cpp
+++ b/ipc/glue/BackgroundImpl.cpp
@@ -430,17 +430,17 @@ private:
 
         // Since the actor is created on the main thread it must only
         // be released on the main thread as well.
         if (!NS_IsMainThread()) {
           ChildImpl* actor;
           threadLocalInfo->mActor.forget(&actor);
 
           MOZ_ALWAYS_SUCCEEDS(
-	    NS_DispatchToMainThread(NewNonOwningRunnableMethod(actor, &ChildImpl::Release)));
+            NS_DispatchToMainThread(NewNonOwningRunnableMethod(actor, &ChildImpl::Release)));
         }
       }
       delete threadLocalInfo;
     }
   }
 
   static void
   DispatchFailureCallback(nsIEventTarget* aEventTarget);
@@ -1253,17 +1253,17 @@ ParentImpl::ShutdownTimerCallback(nsITim
 
   // Don't let the stack unwind until the ForceCloseBackgroundActorsRunnable has
   // finished.
   sLiveActorCount++;
 
   nsCOMPtr<nsIRunnable> forceCloseRunnable =
     new ForceCloseBackgroundActorsRunnable(closure->mLiveActors);
   MOZ_ALWAYS_SUCCEEDS(closure->mThread->Dispatch(forceCloseRunnable,
-						 NS_DISPATCH_NORMAL));
+                                                 NS_DISPATCH_NORMAL));
 }
 
 void
 ParentImpl::Destroy()
 {
   // May be called on any thread!
 
   AssertIsInMainProcess();
--- a/ipc/glue/BrowserProcessSubThread.h
+++ b/ipc/glue/BrowserProcessSubThread.h
@@ -67,15 +67,15 @@ private:
   // on the UI thread by the g_browser_process object.  ChromeThreads remove
   // themselves from this array upon destruction.
   static BrowserProcessSubThread* sBrowserThreads[ID_COUNT];
 };
 
 inline void AssertIOThread()
 {
   NS_ASSERTION(MessageLoop::TYPE_IO == MessageLoop::current()->type(),
-	       "should be on the IO thread!");
+               "should be on the IO thread!");
 }
 
 } // namespace ipc
 } // namespace mozilla
 
 #endif // mozilla_ipc_BrowserProcessSubThread_h
--- a/ipc/glue/GeckoChildProcessHost.cpp
+++ b/ipc/glue/GeckoChildProcessHost.cpp
@@ -1,10 +1,8 @@
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "GeckoChildProcessHost.h"
 
 #include "base/command_line.h"
 #include "base/string_util.h"
--- a/ipc/glue/GeckoChildProcessHost.h
+++ b/ipc/glue/GeckoChildProcessHost.h
@@ -191,17 +191,17 @@ protected:
 private:
   DISALLOW_EVIL_CONSTRUCTORS(GeckoChildProcessHost);
 
   // Does the actual work for AsyncLaunch, on the IO thread.
   bool PerformAsyncLaunchInternal(std::vector<std::string>& aExtraOpts,
                                   base::ProcessArchitecture arch);
 
   bool RunPerformAsyncLaunch(StringVector aExtraOpts=StringVector(),
-			     base::ProcessArchitecture aArch=base::GetCurrentProcessArchitecture());
+                             base::ProcessArchitecture aArch=base::GetCurrentProcessArchitecture());
 
   static void GetPathToBinary(FilePath& exePath);
 
   // The buffer is passed to preserve its lifetime until we are done
   // with launching the sub-process.
   void SetChildLogName(const char* varName, const char* origLogName,
                        nsACString &buffer);
 
--- a/ipc/glue/MessagePump.cpp
+++ b/ipc/glue/MessagePump.cpp
@@ -76,17 +76,17 @@ MessagePump::~MessagePump()
 {
 }
 
 void
 MessagePump::Run(MessagePump::Delegate* aDelegate)
 {
   MOZ_ASSERT(keep_running_);
   MOZ_RELEASE_ASSERT(NS_IsMainThread(),
-		     "Use mozilla::ipc::MessagePumpForNonMainThreads instead!");
+                     "Use mozilla::ipc::MessagePumpForNonMainThreads instead!");
   MOZ_RELEASE_ASSERT(!mThread);
 
   nsIThread* thisThread = NS_GetCurrentThread();
   MOZ_ASSERT(thisThread);
 
   mDelayedWorkTimer = do_CreateInstance(kNS_TIMER_CID);
   MOZ_ASSERT(mDelayedWorkTimer);
 
@@ -167,17 +167,17 @@ MessagePump::ScheduleDelayedWork(const b
 #ifdef MOZ_NUWA_PROCESS
   if (IsNuwaReady() && IsNuwaProcess())
     return;
 #endif
 
   // To avoid racing on mDelayedWorkTimer, we need to be on the same thread as
   // ::Run().
   MOZ_RELEASE_ASSERT(NS_GetCurrentThread() == mThread ||
-		     (!mThread && NS_IsMainThread()));
+                     (!mThread && NS_IsMainThread()));
 
   if (!mDelayedWorkTimer) {
     mDelayedWorkTimer = do_CreateInstance(kNS_TIMER_CID);
     if (!mDelayedWorkTimer) {
         // Called before XPCOM has started up? We can't do this correctly.
         NS_WARNING("Delayed task might not run!");
         delayed_work_time_ = aDelayedTime;
         return;
@@ -217,17 +217,17 @@ MessagePump::DoDelayedWork(base::Message
 {
   aDelegate->DoDelayedWork(&delayed_work_time_);
   if (!delayed_work_time_.is_null()) {
     ScheduleDelayedWork(delayed_work_time_);
   }
 }
 
 NS_IMPL_ISUPPORTS_INHERITED(DoWorkRunnable, CancelableRunnable,
-			    nsITimerCallback)
+                            nsITimerCallback)
 
 NS_IMETHODIMP
 DoWorkRunnable::Run()
 {
   MessageLoop* loop = MessageLoop::current();
   MOZ_ASSERT(loop);
 
   bool nestableTasksAllowed = loop->NestableTasksAllowed();