summaryrefslogtreecommitdiffstats
path: root/services/cloudsync/CloudSync.jsm
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-04 18:21:04 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-04 18:21:04 +0200
commitdee00a8a79394559e0e868cc72464c2de24583ac (patch)
tree18dc2e3db8127ceabcf9b03416b135bced2976ad /services/cloudsync/CloudSync.jsm
parent851cfd198bc01020cd411d4f1cd6586222700269 (diff)
parent363bfeb2c06e5f57136ebdab8da1ebeba0591520 (diff)
downloadUXP-dee00a8a79394559e0e868cc72464c2de24583ac.tar
UXP-dee00a8a79394559e0e868cc72464c2de24583ac.tar.gz
UXP-dee00a8a79394559e0e868cc72464c2de24583ac.tar.lz
UXP-dee00a8a79394559e0e868cc72464c2de24583ac.tar.xz
UXP-dee00a8a79394559e0e868cc72464c2de24583ac.zip
Merge branch 'master' into Basilisk-release
Diffstat (limited to 'services/cloudsync/CloudSync.jsm')
-rw-r--r--services/cloudsync/CloudSync.jsm89
1 files changed, 0 insertions, 89 deletions
diff --git a/services/cloudsync/CloudSync.jsm b/services/cloudsync/CloudSync.jsm
deleted file mode 100644
index 2c1057ea9..000000000
--- a/services/cloudsync/CloudSync.jsm
+++ /dev/null
@@ -1,89 +0,0 @@
-/* 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";
-
-this.EXPORTED_SYMBOLS = ["CloudSync"];
-
-Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "Adapters",
- "resource://gre/modules/CloudSyncAdapters.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "Local",
- "resource://gre/modules/CloudSyncLocal.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "Bookmarks",
- "resource://gre/modules/CloudSyncBookmarks.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "Tabs",
- "resource://gre/modules/CloudSyncTabs.jsm");
-
-var API_VERSION = 1;
-
-var _CloudSync = function () {
-};
-
-_CloudSync.prototype = {
- _adapters: null,
-
- get adapters () {
- if (!this._adapters) {
- this._adapters = new Adapters();
- }
- return this._adapters;
- },
-
- _bookmarks: null,
-
- get bookmarks () {
- if (!this._bookmarks) {
- this._bookmarks = new Bookmarks();
- }
- return this._bookmarks;
- },
-
- _local: null,
-
- get local () {
- if (!this._local) {
- this._local = new Local();
- }
- return this._local;
- },
-
- _tabs: null,
-
- get tabs () {
- if (!this._tabs) {
- this._tabs = new Tabs();
- }
- return this._tabs;
- },
-
- get tabsReady () {
- return this._tabs ? true: false;
- },
-
- get version () {
- return API_VERSION;
- },
-};
-
-this.CloudSync = function CloudSync () {
- return _cloudSyncInternal.instance;
-};
-
-Object.defineProperty(CloudSync, "ready", {
- get: function () {
- return _cloudSyncInternal.ready;
- }
-});
-
-var _cloudSyncInternal = {
- instance: null,
- ready: false,
-};
-
-XPCOMUtils.defineLazyGetter(_cloudSyncInternal, "instance", function () {
- _cloudSyncInternal.ready = true;
- return new _CloudSync();
-}.bind(this));