diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-22 19:31:52 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-22 19:31:52 -0500 |
commit | 79c3699076108f1177ff74f54bbbe1c05140e14d (patch) | |
tree | 03e47bf1d53d651f880ee62a463700068c502e02 /storage | |
parent | 749a9220e051982164f5a8c274d4610a0df2f262 (diff) | |
download | aura-central-79c3699076108f1177ff74f54bbbe1c05140e14d.tar.gz |
Issue mcp-graveyard/UXP%1053 - Remove android support from storage/mozStorageConnection.cpp
Diffstat (limited to 'storage')
-rw-r--r-- | storage/mozStorageConnection.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp index 10297fca1..e6c357185 100644 --- a/storage/mozStorageConnection.cpp +++ b/storage/mozStorageConnection.cpp @@ -1955,10 +1955,6 @@ Connection::RemoveProgressHandler(mozIStorageProgressHandler **_oldHandler) NS_IMETHODIMP Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseName) { - // Bug 597215: Disk space is extremely limited on Android - // so don't preallocate space. This is also not effective - // on log structured file systems used by Android devices -#if !defined(ANDROID) && !defined(MOZ_PLATFORM_MAEMO) // Don't preallocate if less than 500MiB is available. int64_t bytesAvailable; nsresult rv = mDatabaseFile->GetDiskSpaceAvailable(&bytesAvailable); @@ -1972,7 +1968,7 @@ Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseNa : nullptr, SQLITE_FCNTL_CHUNK_SIZE, &aChunkSize); -#endif + return NS_OK; } |