From 68c5e5ec580ae4e99af106f30bbaa960ee7ffafc Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Fri, 23 Sep 2011 13:17:58 -0700 Subject: [PATCH] Bug 669199 - Remove ability to enable/disable sync from preferences UI (r=mbrubeck) --- mobile/app/mobile.js | 2 - mobile/chrome/content/browser-ui.js | 14 ---- mobile/chrome/content/browser.xul | 5 +- mobile/chrome/content/sync.js | 100 ++++++++++----------------- mobile/locales/en-US/chrome/sync.dtd | 1 - 5 files changed, 39 insertions(+), 83 deletions(-) diff --git a/mobile/app/mobile.js b/mobile/app/mobile.js index 1a89f1113049..ac7e61093e88 100644 --- a/mobile/app/mobile.js +++ b/mobile/app/mobile.js @@ -554,8 +554,6 @@ pref("font.default.x-western", "SwissA"); #endif #ifdef MOZ_SERVICES_SYNC -pref("browser.sync.enabled", true); - // sync service pref("services.sync.client.type", "mobile"); pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password,Prefs"); diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index 85f568b742c5..62992cfb7878 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -1225,20 +1225,6 @@ var BrowserUI = { // to make the sure the dialog stacking is correct. AwesomeScreen.activePanel = RemoteTabsList; WeaveGlue.open(); - } else if (!Weave.Service.isLoggedIn && !Services.prefs.getBoolPref("browser.sync.enabled")) { - // unchecked the relative command button - document.getElementById("remotetabs-button").removeAttribute("checked"); - - BrowserUI.showPanel("prefs-container"); - let prefsBox = document.getElementById("prefs-list"); - let syncArea = document.getElementById("prefs-sync"); - if (prefsBox && syncArea) { - let prefsBoxY = prefsBox.firstChild.boxObject.screenY; - let syncAreaY = syncArea.boxObject.screenY; - setTimeout(function() { - prefsBox.scrollBoxObject.scrollTo(0, syncAreaY - prefsBoxY); - }, 0); - } } else { AwesomeScreen.activePanel = RemoteTabsList; } diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul index d395b2668036..124ee46760a4 100644 --- a/mobile/chrome/content/browser.xul +++ b/mobile/chrome/content/browser.xul @@ -476,9 +476,8 @@ #ifdef MOZ_SERVICES_SYNC - - -