Bug 868094 - Sync service should notify when the startOver process completes. r=rnewman
authorJim Mathies <jmathies@mozilla.com>
Tue, 07 May 2013 15:55:51 -0500
changeset 142131 14e581ecbf0c6dbf468d2e808cdc5815cd5788bb
parent 142130 b86f728bb8ef1f74967ac78b9eada601fffacca3
child 142132 616f2609c29454ee9f34c7d35a098ec06f9c6c98
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs868094
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 868094 - Sync service should notify when the startOver process completes. r=rnewman
services/sync/modules/service.js
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -871,16 +871,18 @@ Sync11Service.prototype = {
     // Reset Weave prefs.
     this._ignorePrefObserver = true;
     Svc.Prefs.resetBranch("");
     this._ignorePrefObserver = false;
 
     Svc.Prefs.set("lastversion", WEAVE_VERSION);
 
     this.identity.deleteSyncCredentials();
+
+    Svc.Obs.notify("weave:service:start-over:finish");
   },
 
   persistLogin: function persistLogin() {
     try {
       this.identity.persistCredentials(true);
     } catch (ex) {
       this._log.info("Unable to persist credentials: " + ex);
     }