41 lines
2.0 KiB
Diff
41 lines
2.0 KiB
Diff
From: uazo <uazo@users.noreply.github.com>
|
|
Date: Sun, 29 Oct 2023 15:18:24 +0000
|
|
Subject: Temp guard FileSystemAccessPersistentPermissions
|
|
|
|
---
|
|
.../chrome_file_system_access_permission_context.cc | 4 ++--
|
|
.../browser/file_system_access/file_system_access_features.cc | 1 +
|
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
|
--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
|
+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
|
@@ -468,7 +468,7 @@ bool ShouldBlockAccessToPath(const base::FilePath& path,
|
|
normalize_file_paths ? NormalizeFilePath(block.path) : block.path;
|
|
|
|
if (check_path == blocked_path || check_path.IsParent(blocked_path)) {
|
|
- VLOG(1) << "Blocking access to " << check_path
|
|
+ LOG(INFO) << "Blocking access to " << check_path
|
|
<< " because it is a parent of " << blocked_path;
|
|
return true;
|
|
}
|
|
@@ -495,7 +495,7 @@ bool ShouldBlockAccessToPath(const base::FilePath& path,
|
|
}
|
|
|
|
// The nearest ancestor blocks access to its children, so block access.
|
|
- VLOG(1) << "Blocking access to " << check_path << " because it is inside "
|
|
+ LOG(INFO) << "Blocking access to " << check_path << " because it is inside "
|
|
<< nearest_ancestor;
|
|
return true;
|
|
}
|
|
diff --git a/chrome/browser/file_system_access/file_system_access_features.cc b/chrome/browser/file_system_access/file_system_access_features.cc
|
|
--- a/chrome/browser/file_system_access/file_system_access_features.cc
|
|
+++ b/chrome/browser/file_system_access/file_system_access_features.cc
|
|
@@ -23,4 +23,5 @@ BASE_FEATURE(kFileSystemAccessSymbolicLinkCheck,
|
|
"FileSystemAccessSymbolicLinkCheck",
|
|
base::FEATURE_ENABLED_BY_DEFAULT);
|
|
|
|
+SET_CROMITE_FEATURE_DISABLED(kFileSystemAccessPersistentPermissions);
|
|
} // namespace features
|
|
--
|