Disable features flagged by privacy/security team

This commit is contained in:
Emerick Rogul
2023-06-19 16:00:17 -04:00
parent fd626eabfe
commit 5aaec6020a
8 changed files with 60 additions and 0 deletions
+4
View File
@@ -117,6 +117,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) {
&blink::features::kCssSelectorFragmentAnchor,
&blink::features::kFencedFrames,
&blink::features::kFledge,
&blink::features::kFledgeBiddingAndAuctionServer,
&blink::features::kFledgeConsiderKAnonymity,
&blink::features::kFledgeEnforceKAnonymity,
&blink::features::kInterestGroupStorage,
@@ -185,6 +186,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) {
&history_clusters::internal::kHistoryClustersInternalsPage,
&history_clusters::internal::kHistoryClustersNavigationContextClustering,
&history_clusters::internal::kJourneys,
&history_clusters::internal::kJourneysNamedNewTabGroups,
&history_clusters::internal::kJourneysZeroStateFiltering,
&history_clusters::internal::kOmniboxAction,
&history_clusters::internal::kOmniboxHistoryClusterProvider,
@@ -202,6 +204,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) {
&network::features::kPrivateStateTokens,
&network_time::kNetworkTimeServiceQuerying,
&ntp_features::kNtpAlphaBackgroundCollections,
&ntp_features::kNtpBackgroundImageErrorDetection,
&ntp_features::kNtpChromeCartModule,
&ntp_features::kNtpHistoryClustersModule,
&ntp_features::kNtpHistoryClustersModuleLoad,
@@ -219,6 +222,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) {
#endif
&permissions::features::kPermissionOnDeviceNotificationPredictions,
&privacy_sandbox::kOverridePrivacySandboxSettingsLocalTesting,
&privacy_sandbox::kEnforcePrivacySandboxAttestations,
&privacy_sandbox::kPrivacySandboxSettings3,
&privacy_sandbox::kPrivacySandboxSettings4,
&safe_browsing::kExtensionTelemetry,
@@ -15,6 +15,7 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
{kHistoryClustersNavigationContextClustering,
base::FEATURE_DISABLED_BY_DEFAULT},
{kJourneys, base::FEATURE_DISABLED_BY_DEFAULT},
{kJourneysNamedNewTabGroups, base::FEATURE_DISABLED_BY_DEFAULT},
{kJourneysZeroStateFiltering, base::FEATURE_DISABLED_BY_DEFAULT},
{kOmniboxAction, base::FEATURE_DISABLED_BY_DEFAULT},
{kOmniboxHistoryClusterProvider, base::FEATURE_DISABLED_BY_DEFAULT},
@@ -0,0 +1,17 @@
/* Copyright (c) 2023 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/components/metrics/metrics_features.cc"
#include "base/feature_override.h"
namespace metrics::features {
OVERRIDE_FEATURE_DEFAULT_STATES({{
{kStructuredMetrics, base::FEATURE_DISABLED_BY_DEFAULT},
{kSubprocessMetricsProviderLeaky, base::FEATURE_DISABLED_BY_DEFAULT},
}});
} // namespace metrics::features
@@ -0,0 +1,16 @@
/* Copyright (c) 2023 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/components/metrics/structured/structured_metrics_features.cc"
#include "base/feature_override.h"
namespace metrics::structured {
OVERRIDE_FEATURE_DEFAULT_STATES({{
{kEnabledStructuredMetricsService, base::FEATURE_DISABLED_BY_DEFAULT},
}});
} // namespace metrics::structured
@@ -10,6 +10,7 @@
namespace privacy_sandbox {
OVERRIDE_FEATURE_DEFAULT_STATES({{
{kEnforcePrivacySandboxAttestations, base::FEATURE_DISABLED_BY_DEFAULT},
{kPrivacySandboxSettings3, base::FEATURE_DISABLED_BY_DEFAULT},
{kPrivacySandboxSettings4, base::FEATURE_DISABLED_BY_DEFAULT},
{kOverridePrivacySandboxSettingsLocalTesting,
@@ -12,6 +12,7 @@ namespace ntp_features {
OVERRIDE_FEATURE_DEFAULT_STATES({{
{kNtpAlphaBackgroundCollections, base::FEATURE_DISABLED_BY_DEFAULT},
{kNtpBackgroundImageErrorDetection, base::FEATURE_DISABLED_BY_DEFAULT},
{kNtpChromeCartModule, base::FEATURE_DISABLED_BY_DEFAULT},
{kNtpHistoryClustersModule, base::FEATURE_DISABLED_BY_DEFAULT},
{kNtpHistoryClustersModuleLoad, base::FEATURE_DISABLED_BY_DEFAULT},
@@ -0,0 +1,19 @@
/* Copyright (c) 2023 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/content/browser/aggregation_service/features.cc"
#include "base/feature_override.h"
namespace content {
OVERRIDE_FEATURE_DEFAULT_STATES({{
{aggregation_service::kAttributionReportingNullAggregatableReports,
base::FEATURE_DISABLED_BY_DEFAULT},
{aggregation_service::kAggregationServiceMultipleCloudProviders,
base::FEATURE_DISABLED_BY_DEFAULT},
}});
} // namespace content
+1
View File
@@ -28,6 +28,7 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
{kCssSelectorFragmentAnchor, base::FEATURE_DISABLED_BY_DEFAULT},
{kFencedFrames, base::FEATURE_DISABLED_BY_DEFAULT},
{kFledge, base::FEATURE_DISABLED_BY_DEFAULT},
{kFledgeBiddingAndAuctionServer, base::FEATURE_DISABLED_BY_DEFAULT},
{kFledgeConsiderKAnonymity, base::FEATURE_DISABLED_BY_DEFAULT},
{kFledgeEnforceKAnonymity, base::FEATURE_DISABLED_BY_DEFAULT},
{kInterestGroupStorage, base::FEATURE_DISABLED_BY_DEFAULT},