Bug 638818 - Dont clear sync if its not configured. r=mbrubeck, a=mfinkle]
authorWes Johnston <wjohnston@mozilla.com>
Tue, 08 Mar 2011 13:06:54 -0800
changeset 67483 36be7ad4c720bae2435d7ecd90e4ea973bfc5d8b
parent 67482 6c948b73221a95014627a784b09d55973e6cc933
child 67484 a2628acfd43281613b18b81e792a3cec38c19881
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)
reviewersmbrubeck, mfinkle
bugs638818
Bug 638818 - Dont clear sync if its not configured. r=mbrubeck, a=mfinkle]
mobile/chrome/content/sanitize.js
--- a/mobile/chrome/content/sanitize.js
+++ b/mobile/chrome/content/sanitize.js
@@ -285,18 +285,17 @@ Sanitizer.prototype = {
     syncAccount: {
       clear: function ()
       {
         WeaveGlue.disconnect();
       },
 
       get canClear()
       {
-        let autoconnect = Services.prefs.getBoolPref("services.sync.autoconnect");
-        return autoconnect || Weave.Service.isLoggedIn;
+        return (Weave.Status.checkSetup() != Weave.CLIENT_NOT_CONFIGURED);
       }
     }
   }
 };
 
 
 // "Static" members
 Sanitizer.prefDomain          = "privacy.sanitize.";