Commit 88d53e05 authored by Minggang Wang's avatar Minggang Wang Committed by Commit Bot

Remove EnableReducedReferrerGranularity from WebRuntimeFeatures

This patch removes EnableReducedReferrerGranularity from WebRuntimeFeatures,
because features::kReducedReferrerGranularity is available in Blink now.

Bug: 860403
Change-Id: If7da017b49bf86c2a539e07ac03a0735658f6a81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358992
Commit-Queue: Minggang Wang <minggang.wang@intel.com>
Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801696}
parent fb07e7f9
......@@ -618,15 +618,6 @@ void SetCustomizedRuntimeFeaturesFromCombinedArgs(
WebRuntimeFeatures::EnableBackForwardCache(
content::IsBackForwardCacheEnabled());
// Gate the ReducedReferrerGranularity runtime feature depending on whether
// content is configured to force a no-referrer-when-downgrade default policy.
// TODO(crbug.com/1016541): After M82, remove when the corresponding
// enterprise policy has been deleted.
WebRuntimeFeatures::EnableReducedReferrerGranularity(
base::FeatureList::IsEnabled(
blink::features::kReducedReferrerGranularity) &&
!blink::ReferrerUtils::ShouldForceLegacyDefaultReferrerPolicy());
if (base::FeatureList::IsEnabled(
blink::features::kAppCacheRequireOriginTrial)) {
// The kAppCacheRequireOriginTrial is a flag that controls whether or not
......
......@@ -154,7 +154,6 @@ class WebRuntimeFeatures {
BLINK_PLATFORM_EXPORT static void EnablePresentationAPI(bool);
BLINK_PLATFORM_EXPORT static void EnablePushMessaging(bool);
BLINK_PLATFORM_EXPORT static void EnablePushSubscriptionChangeEvent(bool);
BLINK_PLATFORM_EXPORT static void EnableReducedReferrerGranularity(bool);
BLINK_PLATFORM_EXPORT static void EnableRemotePlaybackAPI(bool);
BLINK_PLATFORM_EXPORT static void
EnableRestrictAutomaticLazyFrameLoadingToDataSaver(bool);
......
......@@ -435,10 +435,6 @@ void WebRuntimeFeatures::EnableV8IdleTasks(bool enable) {
RuntimeEnabledFeatures::SetV8IdleTasksEnabled(enable);
}
void WebRuntimeFeatures::EnableReducedReferrerGranularity(bool enable) {
RuntimeEnabledFeatures::SetReducedReferrerGranularityEnabled(enable);
}
void WebRuntimeFeatures::EnablePushMessaging(bool enable) {
RuntimeEnabledFeatures::SetPushMessagingEnabled(enable);
}
......
......@@ -1559,10 +1559,6 @@
// Enabled when blink::features::kRawClipboard is enabled.
name: "RawClipboard",
},
{
name: "ReducedReferrerGranularity",
status: "experimental",
},
{
name: "RemotePlayback",
status: "stable",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment