Bug 557244 - Minor code cleanup in Browser.startup [r=mark.finkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Mon, 05 Apr 2010 13:37:17 -0400
changeset 66100 ac2c73541276012cd27ef9b03f67c329ce623d64
parent 66099 337bb69df9984ab781a268b9268936594c6dd305
child 66101 cc3e43a2a657464fa73224705c61748154b5943a
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmark
bugs557244
Bug 557244 - Minor code cleanup in Browser.startup [r=mark.finkle]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -469,25 +469,18 @@ var Browser = {
     // Login Manager
     Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
 
     // Make sure we're online before attempting to load
     Util.forceOnline();
 
     // Command line arguments/initial homepage
     let whereURI = this.getHomePage();
-    switch (needOverride) {
-      case "new profile":
+    if (needOverride == "new profile")
         whereURI = "about:firstrun";
-        break;
-      case "new version":
-      case "none":
-        whereURI = this.getHomePage();
-        break;
-    }
 
     // If this is an intial window launch (was a nsICommandLine passed via window params)
     // we execute some logic to load the initial launch page
     if (window.arguments && window.arguments[0] &&
         window.arguments[0] instanceof Ci.nsICommandLine) {
       try {
         var cmdLine = window.arguments[0];