Bug 1177774 - Fix issues in HomeProvider. r=margaret

--HG--
extra : commitid : H8Br4O297Mp
extra : rebase_source : 59971df614a4038f418537b22b0fc1345d07b8cf
This commit is contained in:
Michael Comella 2015-06-26 15:07:29 -07:00
parent 643934600c
commit 0e096f7e43

View File

@ -5,6 +5,8 @@
"use strict";
/*globals gSyncCheckIntervalSecs, gUpdateTimerManager, Sqlite, DB_PATH */
this.EXPORTED_SYMBOLS = [ "HomeProvider" ];
const { utils: Cu, classes: Cc, interfaces: Ci } = Components;
@ -125,18 +127,18 @@ function syncTimerCallback(timer) {
}
}
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,
/**