Bug 1438945 - Fix typos in comments. r=asuth
authorBlake Kaplan <mrbkap@gmail.com>
Mon, 19 Nov 2018 15:18:33 -0800
changeset 503577 c9e6293a64a6e3d120ae2b7c56965e9249d5877b
parent 503576 c52099a44a4e780047f71f4a3a5eec59cf2e7b1c
child 503578 5fa24f8069cbffe7635ca7b928956cea63aa5763
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1438945
milestone65.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 1438945 - Fix typos in comments. r=asuth Some small fixes that I noticed. Differential Revision: https://phabricator.services.mozilla.com/D11823
dom/workers/remoteworkers/RemoteWorkerChild.h
dom/workers/remoteworkers/RemoteWorkerController.h
dom/workers/remoteworkers/RemoteWorkerService.cpp
--- a/dom/workers/remoteworkers/RemoteWorkerChild.h
+++ b/dom/workers/remoteworkers/RemoteWorkerChild.h
@@ -109,19 +109,19 @@ private:
 
     // Worker up and running.
     eRunning,
 
     // Worker terminated.
     eTerminated,
   };
 
-  // Touched only on the owning thread (PBackground).
+  // Touched only on the owning thread (Worker Launcher).
   WorkerState mWorkerState;
 
-  // Touched only on the owning thread (PBackground).
+  // Touched only on the owning thread (Worker Launcher).
   nsTArray<RemoteWorkerOp> mPendingOps;
 };
 
 } // dom namespace
 } // mozilla namespace
 
 #endif // mozilla_dom_RemoteWorkerChild_h
--- a/dom/workers/remoteworkers/RemoteWorkerController.h
+++ b/dom/workers/remoteworkers/RemoteWorkerController.h
@@ -7,21 +7,21 @@
 #ifndef mozilla_dom_RemoteWorkerController_h
 #define mozilla_dom_RemoteWorkerController_h
 
 #include "nsISupportsImpl.h"
 
 namespace mozilla {
 namespace dom {
 
-/* Here a graph about this remote workers are spawn.
+/* Here's a graph about this remote workers are spawned.
  *
  *  _________________________________    |   ________________________________
  * |                                 |   |  |                                |
- * |              Parent process     |  IPC |           Creation ofProcess X |
+ * |              Parent process     |  IPC |          Creation of Process X |
  * |              PBackground thread |   |  |                                |
  * |                                 |   |  | [RemoteWorkerService::Init()]  |
  * |                                 |   |  |               |                |
  * |                                 |   |  |               | (1)            |
  * | [RemoteWorkerManager::  (2)     |   |  |               V                |
  * |                RegisterActor()]<-------- [new RemoteWorkerServiceChild] |
  * |                                 |   |  |                                |
  * |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~   |   |  |________________________________|
@@ -62,17 +62,17 @@ namespace dom {
  *    RemoteWorkerController::Create() is used to start the launching. This
  *    method must be called on the parent process, on the PBackground thread.
  * 4. RemoteWorkerController object is immediately returned to the caller. Any
  *    operation done with this controller object will be stored in a queue,
  *    until the launching is correctly executed.
  * 5. RemoteWorkerManager has the list of active RemoteWorkerServiceParent
  *    actors. From them, it picks one.
  *    In case we don't have any content process to select, a new one is
- *    spawn. If this happen, the operation is suspended until a new
+ *    spawned. If this happens, the operation is suspended until a new
  *    RemoteWorkerServiceParent is registered.
  * 6. RemoteWorkerServiceParent is used to create a RemoteWorkerParent.
  * 7. RemoteWorkerChild is created on a selected process and it executes the
  *    WorkerPrivate.
  * 8. The RemoteWorkerParent actor is passed to the RemoteWorkerController.
  * 9. RemoteWorkerController now is ready to continue and it called
  *    RemoteWorkerObserver to inform that the operation is completed.
  *    In case there were pending operations, they are now executed.
--- a/dom/workers/remoteworkers/RemoteWorkerService.cpp
+++ b/dom/workers/remoteworkers/RemoteWorkerService.cpp
@@ -124,17 +124,17 @@ RemoteWorkerService::~RemoteWorkerServic
 
 void
 RemoteWorkerService::InitializeOnTargetThread()
 {
   MOZ_ASSERT(mThread);
   MOZ_ASSERT(mThread->IsOnCurrentThread());
 
   PBackgroundChild* actorChild =
-  BackgroundChild::GetOrCreateForCurrentThread();
+    BackgroundChild::GetOrCreateForCurrentThread();
   if (NS_WARN_IF(!actorChild)) {
     return;
   }
 
   RemoteWorkerServiceChild* actor =
     static_cast<RemoteWorkerServiceChild*>(
       actorChild->SendPRemoteWorkerServiceConstructor());
   if (NS_WARN_IF(!actor)) {