diff --git a/toolkit/profile/content/profileDowngrade.js b/toolkit/profile/content/profileDowngrade.js index ba1f723ec2ef..dbc79467c2dc 100644 --- a/toolkit/profile/content/profileDowngrade.js +++ b/toolkit/profile/content/profileDowngrade.js @@ -17,12 +17,12 @@ function init() { * 1: A return argument, one of nsIToolkitProfileService.downgradeUIChoice. */ gParams = window.arguments[0].QueryInterface(Ci.nsIDialogParamBlock); - if (AppConstants.MOZ_SERVICES_SYNC) { - let hasSync = gParams.GetInt(0) & Ci.nsIToolkitProfileService.hasSync; + let hasSync = + AppConstants.MOZ_SERVICES_SYNC && + gParams.GetInt(0) & Ci.nsIToolkitProfileService.hasSync; - document.getElementById("sync").hidden = !hasSync; - document.getElementById("nosync").hidden = hasSync; - } + document.getElementById("sync").hidden = !hasSync; + document.getElementById("nosync").hidden = hasSync; document.addEventListener("dialogextra1", createProfile); document.addEventListener("dialogaccept", quit); diff --git a/toolkit/profile/content/profileDowngrade.xhtml b/toolkit/profile/content/profileDowngrade.xhtml index 71cb0b613c64..589c9532f88e 100644 --- a/toolkit/profile/content/profileDowngrade.xhtml +++ b/toolkit/profile/content/profileDowngrade.xhtml @@ -31,10 +31,8 @@ - -#ifdef MOZ_SERVICES_SYNC - -#endif + + diff --git a/toolkit/profile/jar.mn b/toolkit/profile/jar.mn index 4ddead64cbfd..db0c18d06acb 100644 --- a/toolkit/profile/jar.mn +++ b/toolkit/profile/jar.mn @@ -9,5 +9,5 @@ toolkit.jar: content/mozapps/profile/profileSelection.xhtml (content/profileSelection.xhtml) #ifdef MOZ_BLOCK_PROFILE_DOWNGRADE content/mozapps/profile/profileDowngrade.js (content/profileDowngrade.js) -* content/mozapps/profile/profileDowngrade.xhtml (content/profileDowngrade.xhtml) + content/mozapps/profile/profileDowngrade.xhtml (content/profileDowngrade.xhtml) #endif