diff --git a/toolkit/profile/content/profileSelection.js b/toolkit/profile/content/profileSelection.js index f880e54b2802..898d5ef29805 100644 --- a/toolkit/profile/content/profileSelection.js +++ b/toolkit/profile/content/profileSelection.js @@ -4,11 +4,10 @@ * 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/. */ -Components.utils.import("resource://gre/modules/AppConstants.jsm"); -Components.utils.import("resource://gre/modules/Services.jsm"); +const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components; -const C = Components.classes; -const I = Components.interfaces; +Cu.import("resource://gre/modules/AppConstants.jsm"); +Cu.import("resource://gre/modules/Services.jsm"); const ToolkitProfileService = "@mozilla.org/toolkit/profile-service;1"; @@ -19,9 +18,9 @@ var gProfileService; function startup() { - gDialogParams = window.arguments[0].QueryInterface(I.nsIDialogParamBlock); + gDialogParams = window.arguments[0].QueryInterface(Ci.nsIDialogParamBlock); - gProfileService = C[ToolkitProfileService].getService(I.nsIToolkitProfileService); + gProfileService = Cc[ToolkitProfileService].getService(Ci.nsIToolkitProfileService); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_brand");