diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/fileapi/sandbox_mount_point_provider.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc index 96964c0..70fd1c9 100644 --- a/webkit/fileapi/sandbox_mount_point_provider.cc +++ b/webkit/fileapi/sandbox_mount_point_provider.cc @@ -343,6 +343,12 @@ FileSystemOperation* SandboxMountPointProvider::CreateFileSystemOperation( operation_context->set_quota_limit_type(quota::kQuotaLimitTypeLimited); } + // Temporarily disable returning unlimited storage policy for non-PERSISTENT + // storage. Since it may hurt performance for all FileSystem operation. + if (url.type() != kFileSystemTypePersistent && + operation_context->quota_limit_type() == quota::kQuotaLimitTypeUnlimited) + operation_context->set_quota_limit_type(quota::kQuotaLimitTypeLimited); + return new LocalFileSystemOperation(context, operation_context.Pass()); } |