Commit e33de652 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Enable serving URL from persistent filesystem in incognito.

Serving URL Request from persistent filesystems in incognito mode is
enabled.

Bug: 990592
Change-Id: Ieaaf59e60cc9d8de8ecbb3395ee209b0854555b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911202Reviewed-by: default avatarMarijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714848}
parent 79795fce
......@@ -24,6 +24,7 @@
#include "storage/browser/file_system/file_permission_policy.h"
#include "storage/browser/file_system/file_stream_reader.h"
#include "storage/browser/file_system/file_stream_writer.h"
#include "storage/browser/file_system/file_system_features.h"
#include "storage/browser/file_system/file_system_file_util.h"
#include "storage/browser/file_system/file_system_operation.h"
#include "storage/browser/file_system/file_system_operation_runner.h"
......@@ -489,6 +490,11 @@ bool FileSystemContext::CanServeURLRequest(const FileSystemURL& url) const {
return false;
if (url.type() == kFileSystemTypeTemporary)
return true;
if (url.type() == kFileSystemTypePersistent &&
base::FeatureList::IsEnabled(
features::kEnablePersistentFilesystemInIncognito)) {
return true;
}
return !is_incognito_ || !FileSystemContext::IsSandboxFileSystem(url.type());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment