55 lines
3.0 KiB
Diff
55 lines
3.0 KiB
Diff
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
Date: Thu, 10 Dec 2020 21:52:35 +0100
|
|
Subject: Enable network isolation features
|
|
|
|
Enable SplitCacheByNetworkIsolationKey, kSplitHostCacheByNetworkIsolationKey,
|
|
kPartitionConnectionsByNetworkIsolationKey, kPartitionHttpServerPropertiesByNetworkIsolationKey,
|
|
kPartitionSSLSessionsByNetworkIsolationKey, PartitionExpectCTStateByNetworkIsolationKey,
|
|
PartitionNelAndReportingByNetworkIsolationKey, kSplitCacheByNavigationInitiator
|
|
|
|
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
|
---
|
|
.../browser/net/profile_network_context_service.cc | 2 +-
|
|
.../Enable-network-isolation-features.inc | 12 ++++++++++++
|
|
.../Enable-network-isolation-features.inc | 1 +
|
|
3 files changed, 14 insertions(+), 1 deletion(-)
|
|
create mode 100644 cromite_flags/net/base/features_cc/Enable-network-isolation-features.inc
|
|
create mode 100644 cromite_flags/services/network/public/cpp/features_cc/Enable-network-isolation-features.inc
|
|
|
|
diff --git a/chrome/browser/net/profile_network_context_service.cc b/chrome/browser/net/profile_network_context_service.cc
|
|
--- a/chrome/browser/net/profile_network_context_service.cc
|
|
+++ b/chrome/browser/net/profile_network_context_service.cc
|
|
@@ -1026,7 +1026,7 @@ bool GetHttpCacheBackendResetParam(PrefService* local_state) {
|
|
field_trial = base::FeatureList::GetFieldTrial(
|
|
net::features::kSplitCacheByIncludeCredentials);
|
|
current_field_trial_status +=
|
|
- (field_trial ? field_trial->group_name() : "None");
|
|
+ (field_trial ? field_trial->group_name() : "EnableFeatureForTests");
|
|
|
|
// For the HTTP Cache keying experiments, if a flag indicates that the user is
|
|
// in an experiment group, modify `current_field_trial_status` to ensure that
|
|
diff --git a/cromite_flags/net/base/features_cc/Enable-network-isolation-features.inc b/cromite_flags/net/base/features_cc/Enable-network-isolation-features.inc
|
|
new file mode 100644
|
|
--- /dev/null
|
|
+++ b/cromite_flags/net/base/features_cc/Enable-network-isolation-features.inc
|
|
@@ -0,0 +1,12 @@
|
|
+SET_CROMITE_FEATURE_ENABLED(kSplitCodeCacheByNetworkIsolationKey);
|
|
+SET_CROMITE_FEATURE_ENABLED(kPartitionConnectionsByNetworkIsolationKey);
|
|
+
|
|
+SET_CROMITE_FEATURE_ENABLED(kSplitCacheByIncludeCredentials);
|
|
+
|
|
+// enable http cache partition
|
|
+SET_CROMITE_FEATURE_ENABLED(kSplitCacheByNetworkIsolationKey);
|
|
+
|
|
+// most restricted option (ByNavigationInitiator) used
|
|
+// it generates a cache key isolating all requests per initiator.
|
|
+// requests with initiators with an opaque origin are not cached
|
|
+SET_CROMITE_FEATURE_ENABLED(kSplitCacheByNavigationInitiator);
|
|
diff --git a/cromite_flags/services/network/public/cpp/features_cc/Enable-network-isolation-features.inc b/cromite_flags/services/network/public/cpp/features_cc/Enable-network-isolation-features.inc
|
|
new file mode 100644
|
|
--- /dev/null
|
|
+++ b/cromite_flags/services/network/public/cpp/features_cc/Enable-network-isolation-features.inc
|
|
@@ -0,0 +1 @@
|
|
+SET_CROMITE_FEATURE_ENABLED(kSplitAuthCacheByNetworkIsolationKey);
|
|
--
|