Bug 695879 - Use SyncScheduler when adding a new device to sync. r=rnewman
authorLeonard Camacho <leonard.camacho@gmail.com>
Tue, 21 Aug 2012 18:23:42 -0400
changeset 108435 62e4ba7192955230b9c0508bb9c8357e2e02d9c1
parent 108434 3b94ca12777065b0f652265d32e7d352a1488e18
child 108436 3ce94808577bcc0334ef359fa2dc3664cf0e264a
push id1490
push userakeybl@mozilla.com
push dateMon, 08 Oct 2012 18:29:50 +0000
treeherdermozilla-beta@f335e7dacdc1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs695879
milestone17.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 695879 - Use SyncScheduler when adding a new device to sync. r=rnewman
browser/base/content/sync/addDevice.js
--- a/browser/base/content/sync/addDevice.js
+++ b/browser/base/content/sync/addDevice.js
@@ -26,17 +26,17 @@ let gSyncAddDevice = {
                         pin2: this.pin3,
                         pin3: this.wizard.getButton("next")};
 
     this.throbber = document.getElementById("pairDeviceThrobber");
     this.errorRow = document.getElementById("errorRow");
 
     // Kick off a sync. That way the server will have the most recent data from
     // this computer and it will show up immediately on the new device.
-    Weave.Utils.nextTick(Weave.Service.sync, Weave.Service);
+    Weave.SyncScheduler.scheduleNextSync(0);
   },
 
   onPageShow: function onPageShow() {
     this.wizard.getButton("back").hidden = true;
 
     switch (this.wizard.pageIndex) {
       case ADD_DEVICE_PAGE:
         this.onTextBoxInput();