Bug 1177774 - Fix issues in HomeProvider. r=margaret
☠☠ backed out by 00c94def1c35 ☠ ☠
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 26 Jun 2015 15:07:29 -0700
changeset 268477 8cab4b5abe7f98a52fcbf632dd957447f8b9be7f
parent 268476 ae0144e2759977f3796f2850cc1b6a33a9e510c6
child 268478 a24f4a731038e69b912fc26f06e5721d84aaf635
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-esr52@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1177774
milestone41.0a1
Bug 1177774 - Fix issues in HomeProvider. r=margaret
mobile/android/modules/HomeProvider.jsm
--- a/mobile/android/modules/HomeProvider.jsm
+++ b/mobile/android/modules/HomeProvider.jsm
@@ -1,15 +1,17 @@
 // -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
+/*globals gSyncCheckIntervalSecs, gUpdateTimerManager, Sqlite, DB_PATH */
+
 this.EXPORTED_SYMBOLS = [ "HomeProvider" ];
 
 const { utils: Cu, classes: Cc, interfaces: Ci } = Components;
 
 Cu.import("resource://gre/modules/Messaging.jsm");
 Cu.import("resource://gre/modules/osfile.jsm");
 Cu.import("resource://gre/modules/Promise.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
@@ -120,28 +122,28 @@ function syncTimerCallback(timer) {
       let success = HomeProvider.requestSync(datasetId, callback);
       if (success) {
         Services.prefs.setIntPref(getLastSyncPrefName(datasetId), now);
       }
     }
   }
 }
 
-this.HomeStorage = function(datasetId) {
+let HomeStorage = function(datasetId) {
   this.datasetId = datasetId;
 };
 
-this.ValidationError = function(message) {
+let ValidationError = function(message) {
   this.name = "ValidationError";
   this.message = message;
 };
 ValidationError.prototype = new Error();
 ValidationError.prototype.constructor = ValidationError;
 
-this.HomeProvider = Object.freeze({
+let HomeProvider = Object.freeze({
   ValidationError: ValidationError,
 
   /**
    * Returns a storage associated with a given dataset identifer.
    *
    * @param datasetId
    *        (string) Unique identifier for the dataset.
    *