[cr135] Permission policy feature flags moved under //service
This is a trend with permission polices moving out of blink. This particular change only affects feature flags. Chromium change: https://chromium.googlesource.com/chromium/src/+/f42e6bd64cdb0afed53cbec711f7b9249353c87d commit f42e6bd64cdb0afed53cbec711f7b9249353c87d Author: Sandor Major <sandormajor@chromium.org> Date: Thu Feb 27 16:12:04 2025 -0800 Move permissions_policy.cc-used feature flags to the Network service Permissions Policy code is being moved to the Network service so these flags need to move as well. Bug: 382291442
This commit is contained in:
@@ -94,7 +94,6 @@ TEST(FeatureDefaultsTest, DisabledFeatures) {
|
||||
&blink::features::kAllowURNsInIframes,
|
||||
&blink::features::kAttributionReportingInBrowserMigration,
|
||||
&blink::features::kBackgroundResourceFetch,
|
||||
&blink::features::kBrowsingTopics,
|
||||
&blink::features::kControlledFrame,
|
||||
&blink::features::kCssSelectorFragmentAnchor,
|
||||
&blink::features::kFencedFrames,
|
||||
@@ -102,11 +101,9 @@ TEST(FeatureDefaultsTest, DisabledFeatures) {
|
||||
&blink::features::kFledgeBiddingAndAuctionServer,
|
||||
&blink::features::kFledgeConsiderKAnonymity,
|
||||
&blink::features::kFledgeEnforceKAnonymity,
|
||||
&blink::features::kInterestGroupStorage,
|
||||
&blink::features::kParakeet,
|
||||
&blink::features::kPrerender2,
|
||||
&blink::features::kPrivateAggregationApi,
|
||||
&blink::features::kSharedStorageAPI,
|
||||
&blink::features::kSpeculationRulesPrefetchFuture,
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
&chrome::android::kAdaptiveButtonInTopToolbarCustomizationV2,
|
||||
@@ -201,6 +198,9 @@ TEST(FeatureDefaultsTest, DisabledFeatures) {
|
||||
&net::features::kTopLevelTpcdOriginTrial,
|
||||
&net::features::kTpcdMetadataGrants,
|
||||
&net::features::kWaitForFirstPartySetsInit,
|
||||
&network::features::kBrowsingTopics,
|
||||
&network::features::kInterestGroupStorage,
|
||||
&network::features::kSharedStorageAPI,
|
||||
&network_time::kNetworkTimeServiceQuerying,
|
||||
&ntp_features::kCustomizeChromeSidePanelExtensionsCard,
|
||||
&ntp_features::kCustomizeChromeWallpaperSearch,
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Copyright (c) 2025 The Brave Authors. All rights reserved.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "src/services/network/public/cpp/features.cc"
|
||||
|
||||
#include "base/feature_override.h"
|
||||
|
||||
namespace network::features {
|
||||
|
||||
OVERRIDE_FEATURE_DEFAULT_STATES({{
|
||||
{kBrowsingTopics, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kInterestGroupStorage, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kSharedStorageAPI, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
}});
|
||||
|
||||
} // namespace network::features
|
||||
@@ -21,7 +21,6 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
|
||||
{kAttributionReportingInBrowserMigration,
|
||||
base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kBackgroundResourceFetch, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kBrowsingTopics, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kControlledFrame, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kCssSelectorFragmentAnchor, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kFencedFrames, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
@@ -29,7 +28,6 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
|
||||
{kFledgeBiddingAndAuctionServer, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kFledgeConsiderKAnonymity, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kFledgeEnforceKAnonymity, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kInterestGroupStorage, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kParakeet, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kPrerender2, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kPrivateAggregationApi, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
@@ -37,7 +35,6 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
|
||||
// Ephemeral Storage can switch cookie storage backend at runtime, so we
|
||||
// can't use it.
|
||||
{kReduceUserAgentMinorVersion, base::FEATURE_ENABLED_BY_DEFAULT},
|
||||
{kSharedStorageAPI, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
{kSpeculationRulesPrefetchFuture, base::FEATURE_DISABLED_BY_DEFAULT},
|
||||
}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user