diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-08 10:49:03 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-08 10:49:03 +0100 |
commit | 60c83971fb19dea49beab3a02c8913f75f62ad09 (patch) | |
tree | 90b3528a725b148a1e05f3a5a520ca3d336ca0d9 /dom/storage/DOMStorageObserver.cpp | |
parent | aff468a486995dd7a31aca182666aeb6da713467 (diff) | |
download | UXP-60c83971fb19dea49beab3a02c8913f75f62ad09.tar UXP-60c83971fb19dea49beab3a02c8913f75f62ad09.tar.gz UXP-60c83971fb19dea49beab3a02c8913f75f62ad09.tar.lz UXP-60c83971fb19dea49beab3a02c8913f75f62ad09.tar.xz UXP-60c83971fb19dea49beab3a02c8913f75f62ad09.zip |
Issue #1263 - Part 1: Remove DiskSpaceWatcher
Diffstat (limited to 'dom/storage/DOMStorageObserver.cpp')
-rw-r--r-- | dom/storage/DOMStorageObserver.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/dom/storage/DOMStorageObserver.cpp b/dom/storage/DOMStorageObserver.cpp index a2b3f1da8..fbbab8e54 100644 --- a/dom/storage/DOMStorageObserver.cpp +++ b/dom/storage/DOMStorageObserver.cpp @@ -70,9 +70,6 @@ DOMStorageObserver::Init() obs->AddObserver(sSelf, "profile-before-change", true); obs->AddObserver(sSelf, "xpcom-shutdown", true); - // Observe low device storage notifications. - obs->AddObserver(sSelf, "disk-space-watcher", true); - #ifdef DOM_STORAGE_TESTS // Testing obs->AddObserver(sSelf, "domstorage-test-flush-force", true); @@ -313,16 +310,6 @@ DOMStorageObserver::Observe(nsISupports* aSubject, return NS_OK; } - if (!strcmp(aTopic, "disk-space-watcher")) { - if (NS_LITERAL_STRING("full").Equals(aData)) { - Notify("low-disk-space"); - } else if (NS_LITERAL_STRING("free").Equals(aData)) { - Notify("no-low-disk-space"); - } - - return NS_OK; - } - #ifdef DOM_STORAGE_TESTS if (!strcmp(aTopic, "domstorage-test-flush-force")) { DOMStorageDBBridge* db = DOMStorageCache::GetDatabase(); |