Index: webkit/browser/fileapi/file_system_context.cc |
diff --git a/webkit/browser/fileapi/file_system_context.cc b/webkit/browser/fileapi/file_system_context.cc |
index b7fbf681da6878ca213f6588ca20dbfeeb590a42..26a48d49a3ca7451d89969acb833c1c05dfb7f78 100644 |
--- a/webkit/browser/fileapi/file_system_context.cc |
+++ b/webkit/browser/fileapi/file_system_context.cc |
@@ -120,6 +120,7 @@ FileSystemContext::FileSystemContext( |
additional_backends_(additional_backends.Pass()), |
external_mount_points_(external_mount_points), |
partition_path_(partition_path), |
+ is_incognito_(options.is_incognito()), |
operation_runner_(new FileSystemOperationRunner(this)) { |
RegisterBackend(sandbox_backend_.get()); |
RegisterBackend(isolated_backend_.get()); |
@@ -349,6 +350,18 @@ void FileSystemContext::EnableTemporaryFileSystemInIncognito() { |
} |
#endif |
+bool FileSystemContext::CanServeURLRequest(const FileSystemURL& url) const { |
+ if (!is_incognito_) |
+ return true; |
+#if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) |
+ if (url.type() == kFileSystemTypeTemporary && |
+ sandbox_backend_->enable_temporary_file_system_in_incognito()) { |
+ return true; |
+ } |
+#endif |
+ return false; |
+} |
+ |
FileSystemContext::~FileSystemContext() { |
} |