| Index: storage/common/blob_storage/blob_storage_constants.h
|
| diff --git a/storage/common/blob_storage/blob_storage_constants.h b/storage/common/blob_storage/blob_storage_constants.h
|
| index a606397eede4a8710ccb224616ae08c4eec55a02..a5c3f9eadb389ecf77bf1f5b94b2a002eec5ebf4 100644
|
| --- a/storage/common/blob_storage/blob_storage_constants.h
|
| +++ b/storage/common/blob_storage/blob_storage_constants.h
|
| @@ -9,6 +9,7 @@
|
| #include <stdint.h>
|
|
|
| #include "base/callback_forward.h"
|
| +#include "build/build_config.h"
|
| #include "storage/common/storage_common_export.h"
|
|
|
| namespace storage {
|
| @@ -17,9 +18,15 @@ constexpr size_t kDefaultIPCMemorySize = 250u * 1024;
|
| constexpr size_t kDefaultSharedMemorySize = 10u * 1024 * 1024;
|
| constexpr size_t kDefaultMaxBlobInMemorySpace = 500u * 1024 * 1024;
|
| constexpr uint64_t kDefaultMaxBlobDiskSpace = 0ull;
|
| -constexpr uint64_t kDefaultMinPageFileSize = 5ull * 1024 * 1024;
|
| constexpr uint64_t kDefaultMaxPageFileSize = 100ull * 1024 * 1024;
|
|
|
| +#if defined(OS_ANDROID)
|
| +// On minimal Android maximum in-memory space can be as low as 5MB.
|
| +constexpr uint64_t kDefaultMinPageFileSize = 1024u * 1024;
|
| +#else
|
| +constexpr uint64_t kDefaultMinPageFileSize = 5ull * 1024 * 1024;
|
| +#endif
|
| +
|
| // All sizes are in bytes.
|
| struct STORAGE_COMMON_EXPORT BlobStorageLimits {
|
| // Returns if the current configuration is valid.
|
|
|