Bug 972100 - avoid an info/collections call as sync starts. r=rnewman
authorMark Hammond <mhammond@skippinet.com.au>
Wed, 30 Apr 2014 17:42:51 +1000
changeset 181489 0a127bfc0c74553e1c1329cf289e89fbc20608c8
parent 181385 8d73271599832c379e8665dc2cca566a68fafb88
child 181490 45cde2fa5cb24ef1748527cd8758f161ef031c61
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersrnewman
bugs972100
milestone32.0a1
Bug 972100 - avoid an info/collections call as sync starts. r=rnewman
services/sync/modules/service.js
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -706,17 +706,17 @@ Sync11Service.prototype = {
           if (!this.identity.syncKey) {
             this._log.warn("No passphrase in verifyLogin.");
             this.status.login = LOGIN_FAILED_NO_PASSPHRASE;
             return false;
           }
 
           // Go ahead and do remote setup, so that we can determine
           // conclusively that our passphrase is correct.
-          if (this._remoteSetup()) {
+          if (this._remoteSetup(test)) {
             // Username/password verified.
             this.status.login = LOGIN_SUCCEEDED;
             return true;
           }
 
           this._log.warn("Remote setup failed.");
           // Remote setup must have failed.
           return false;