diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-03 04:40:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-03 04:40:24 +0200 |
commit | 35aa5708d65f836a7de900bfca1e36078849d94c (patch) | |
tree | 85fc8f133f1ed8a212f86f022c47ec80d9bbed63 /netwerk/cache2 | |
parent | 6ea0c50f919c386087fb73b7867f1870a17bc4f5 (diff) | |
download | uxp-35aa5708d65f836a7de900bfca1e36078849d94c.tar.gz |
Remove pref confusion around cache v2
- Renames browser.cache.use_new_backend to browser.cache.backend
- Sets browser.cache.backend to 1 (use cache v2)
- Removes browser.cache.use_new_backend_temp
Diffstat (limited to 'netwerk/cache2')
-rw-r--r-- | netwerk/cache2/CacheObserver.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/netwerk/cache2/CacheObserver.cpp b/netwerk/cache2/CacheObserver.cpp index 1eb76e8c5b..6b6d893957 100644 --- a/netwerk/cache2/CacheObserver.cpp +++ b/netwerk/cache2/CacheObserver.cpp @@ -26,8 +26,6 @@ CacheObserver* CacheObserver::sSelf = nullptr; static uint32_t const kDefaultUseNewCache = 1; // Use the new cache by default uint32_t CacheObserver::sUseNewCache = kDefaultUseNewCache; -static bool sUseNewCacheTemp = false; // Temp trigger to not lose early adopters - static int32_t const kAutoDeleteCacheVersion = -1; // Auto-delete off by default static int32_t sAutoDeleteCacheVersion = kAutoDeleteCacheVersion; @@ -154,9 +152,7 @@ CacheObserver::AttachToPreferences() "browser.cache.auto_delete_cache_version", kAutoDeleteCacheVersion); mozilla::Preferences::AddUintVarCache( - &sUseNewCache, "browser.cache.use_new_backend", kDefaultUseNewCache); - mozilla::Preferences::AddBoolVarCache( - &sUseNewCacheTemp, "browser.cache.use_new_backend_temp", false); + &sUseNewCache, "browser.cache.backend", kDefaultUseNewCache); mozilla::Preferences::AddBoolVarCache( &sUseDiskCache, "browser.cache.disk.enable", kDefaultUseDiskCache); @@ -297,9 +293,6 @@ bool CacheObserver::UseNewCache() { uint32_t useNewCache = sUseNewCache; - if (sUseNewCacheTemp) - useNewCache = 1; - switch (useNewCache) { case 0: // use the old cache backend return false; |