switch to production ysi server, r=mconley,a=bienvenu 746138
authorDavid Bienvenu <bienvenu@nventure.com>
Tue, 17 Apr 2012 07:52:19 -0700
changeset 11250 9550e38058abe4b56dc01dc17257f326d347e551
parent 11249 a86f9d4fc2a7cdc8ebc5736552745d4799bf290a
child 11251 17a96f4bde1222584ba4fc56217dae4930835f9d
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, bienvenu
bugs746138
switch to production ysi server, r=mconley,a=bienvenu 746138
mail/components/cloudfile/nsYouSendIt.js
--- a/mail/components/cloudfile/nsYouSendIt.js
+++ b/mail/components/cloudfile/nsYouSendIt.js
@@ -10,20 +10,20 @@
 
 const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource:///modules/gloda/log4moz.js");
 Cu.import("resource:///modules/cloudFileAccounts.js");
 
-// Production url: var gServerUrl = "https://dpi.yousendit.com";
-var gServerUrl = "https://test2-api.yousendit.com";
+var gServerUrl = "https://dpi.yousendit.com"; // Production url
+// test url var gServerUrl = "https://test2-api.yousendit.com";
 
-const kApiKey = "9kkwmbvzschzxrermh6s4hkz";
+const kApiKey = "7spvjdt7m4kycr7jyhywrdn2";
 const kAuthPath = "/dpi/v1/auth";
 const kUserInfoPath = "/dpi/v1/user";
 const kItemPath = "/dpi/v1/item/";
 const kItemSendPath = kItemPath + "send";
 const kItemCommitPath = kItemPath + "commit";
 
 function nsYouSendIt() {
   this.log = Log4Moz.getConfiguredLogger("YouSendIt");
@@ -281,16 +281,17 @@ nsYouSendIt.prototype = {
 
           failureCallback();
           return;
         }
         this._userInfo = docResponse;
         let account = docResponse.account;
         this._availableStorage = account.availableStorage;
         this._maxFileSize = account.maxFileSize;
+        this.log.info("available storage = " + this._availableStorage + " max file size = " + this._maxFileSize);
         successCallback();
       }
       else {
         failureCallback();
       }
     }.bind(this);
 
     req.onerror = function() {