Bug 1276884 - fix nits in RunState.jsm. r=ttaubert
authorMike de Boer <mdeboer@mozilla.com>
Wed, 01 Jun 2016 14:48:16 +0200
changeset 338881 52e0f82a635e435f226bcabd6924b71c90b8e86e
parent 338880 023169ce92ef1d926024a11ec257f1e1503f1d66
child 338882 5ca8ea4f429a8415335cccbf3c00a57ffd0ca93e
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert
bugs1276884
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 1276884 - fix nits in RunState.jsm. r=ttaubert
browser/components/sessionstore/RunState.jsm
--- a/browser/components/sessionstore/RunState.jsm
+++ b/browser/components/sessionstore/RunState.jsm
@@ -1,32 +1,28 @@
 /* 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/. */
 
 "use strict";
 
 this.EXPORTED_SYMBOLS = ["RunState"];
 
-const Cu = Components.utils;
-
-Cu.import("resource://gre/modules/Services.jsm", this);
-
 const STATE_STOPPED = 0;
 const STATE_RUNNING = 1;
 const STATE_QUITTING = 2;
 const STATE_CLOSING = 3;
 const STATE_CLOSED = 4;
 
 // We're initially stopped.
 var state = STATE_STOPPED;
 
 /**
  * This module keeps track of SessionStore's current run state. We will
- * always start out at STATE_STOPPED. After the sessionw as read from disk and
+ * always start out at STATE_STOPPED. After the session was read from disk and
  * the initial browser window has loaded we switch to STATE_RUNNING. On the
  * first notice that a browser shutdown was granted we switch to STATE_QUITTING.
  */
 this.RunState = Object.freeze({
   // If we're stopped then SessionStore hasn't been initialized yet. As soon
   // as the session is read from disk and the initial browser window has loaded
   // the run state will change to STATE_RUNNING.
   get isStopped() {