gecko-dev/netwerk/cache
Cameron McCormack 1b811cea21 Bug 1629754 - Silence some nsCacheService warnings. r=michal
This silences two warnings that I see in debug builds.

The first is from nsCacheProfilePrefObserver::ReadPrefs, where the
nsresult from the NS_APP_CACHE_PARENT_DIR directory getting will be
returned even if we successfully get the profile directory.  (While
we're here, factor out some common functionality in this function.)

The second is from dealing with the result of
nsCacheService::CreateCustomOfflineDevice.  Failing to create an offline
device is a normal condition, if the cache size is set to 0 or we have
explicitly disabled the offline cache.  So don't warn in those cases.

Differential Revision: https://phabricator.services.mozilla.com/D70793

--HG--
extra : moz-landing-system : lando
2020-04-14 22:36:53 +00:00
..
moz.build
nsApplicationCache.h
nsApplicationCacheService.cpp Bug 1545909 - Part 2 of 2: Silently fail when appcache is disabled so that we have a cache entry, r=michal 2020-02-10 09:12:33 +00:00
nsApplicationCacheService.h
nsCache.cpp
nsCache.h
nsCacheDevice.h Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
nsCacheEntry.cpp Bug 1621251 Replace NS_ADDREF(*var = other) with *var = do_AddRef(other).take() in /netwerk r=valentin 2020-03-17 15:05:26 +00:00
nsCacheEntry.h Bug 1610070 - Part 3: Convert the rest of netwerk/ to use UniquePtr. r=mayhemer 2020-02-11 16:20:08 +00:00
nsCacheEntryDescriptor.cpp
nsCacheEntryDescriptor.h
nsCacheMetaData.cpp
nsCacheMetaData.h
nsCacheRequest.h
nsCacheService.cpp Bug 1629754 - Silence some nsCacheService warnings. r=michal 2020-04-14 22:36:53 +00:00
nsCacheService.h
nsCacheSession.cpp Bug 1621251 Replace NS_ADDREF(*var = other) with *var = do_AddRef(other).take() in /netwerk r=valentin 2020-03-17 15:05:26 +00:00
nsCacheSession.h
nsCacheUtils.cpp
nsCacheUtils.h
nsDeleteDir.cpp Bug 1610070 - Part 3: Convert the rest of netwerk/ to use UniquePtr. r=mayhemer 2020-02-11 16:20:08 +00:00
nsDeleteDir.h
nsDiskCache.h
nsDiskCacheDeviceSQL.cpp Bug 1621251 Replace NS_ADDREF(*var = other) with *var = do_AddRef(other).take() in /netwerk r=valentin 2020-03-17 15:05:26 +00:00
nsDiskCacheDeviceSQL.h Bug 1610070 - Part 3: Convert the rest of netwerk/ to use UniquePtr. r=mayhemer 2020-02-11 16:20:08 +00:00
nsICache.idl
nsICacheEntryDescriptor.idl
nsICacheListener.idl
nsICacheService.idl
nsICacheSession.idl
nsICacheVisitor.idl