Bug 586122 - Clusters do not get cleared with switching Sync profiles [r=philikon]
authorMark Finkle <mfinkle@mozilla.com>
Thu, 12 Aug 2010 10:26:48 -0400
changeset 66438 c791799b1fefacc4d7d0712202a5ce09836995ed
parent 66437 05cdb7bd3095df71bba62a2a66ddb0a020687f7d
child 66439 a901e2b0753049b846555ce388a38191cad9ac98
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)
reviewersphilikon
bugs586122
Bug 586122 - Clusters do not get cleared with switching Sync profiles [r=philikon]
mobile/chrome/content/sync.js
--- a/mobile/chrome/content/sync.js
+++ b/mobile/chrome/content/sync.js
@@ -47,16 +47,19 @@ let WeaveGlue = {
     Weave.Service.keyGenEnabled = false;
   },
 
   openRemoteTabs: function openRemoteTabs() {
     BrowserUI.newOrSelectTab("about:sync-tabs", null);
   },
 
   connect: function connect() {
+    if (this._settings.user.value != Weave.Service.username)
+      Weave.Service.startOver();
+
     Weave.Service.login(this._settings.user.value, this._settings.pass.value,
       this._settings.secret.value);
     Weave.Service.persistLogin();
   },
 
   disconnect: function disconnect() {
     Weave.Service.logout();
   },