mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1177774 - Fix issues in HomeProvider. r=margaret
--HG-- extra : commitid : H8Br4O297Mp extra : rebase_source : 59971df614a4038f418537b22b0fc1345d07b8cf
This commit is contained in:
parent
643934600c
commit
0e096f7e43
@ -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,
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user