blob: 2cc7e5e48045e723607bbf6c5c34cf44bfeed8a2 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/file_system_access/file_system_access_features.h"
#include "base/feature_list.h"
namespace features {
// Enables revoking pre-existing permissions when moving a file to a path that
// already has permissions, which can happen the destination path was once
// granted permission for a different file that has since been removed.
BASE_FEATURE(kFileSystemAccessMoveWithOverwrite,
base::FEATURE_ENABLED_BY_DEFAULT);
// Enables persistent permissions for the File System Access API.
BASE_FEATURE(kFileSystemAccessPersistentPermissions,
"kFileSystemAccessPersistentPermissions",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_DISABLED_BY_DEFAULT);
#else
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
// Enables performing the blocklist check on a full absolute path, which
// resolves any symbolic link.
BASE_FEATURE(kFileSystemAccessSymbolicLinkCheck,
base::FEATURE_ENABLED_BY_DEFAULT);
} // namespace features