Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: content/child/runtime_features.cc

Issue 2349593002: Wire WebFonts intervention v2 for ECT of 3G (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 44a0a8a4b45185e028c0c3b6dba8f796ea31ba87..078b65a7915b4183580b351354c498736b92342a 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -202,6 +202,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
const std::string webfonts_intervention_v2_about_flag =
command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2);
if (!webfonts_intervention_v2_about_flag.empty()) {
+ WebRuntimeFeatures::enableWebFontsInterventionV2With3G(
+ webfonts_intervention_v2_about_flag.compare(
+ switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith3G) ==
+ 0);
WebRuntimeFeatures::enableWebFontsInterventionV2With2G(
webfonts_intervention_v2_about_flag.compare(
switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith2G) ==
@@ -212,6 +216,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
kEnableWebFontsInterventionV2SwitchValueEnabledWithSlow2G) ==
0);
} else {
+ WebRuntimeFeatures::enableWebFontsInterventionV2With3G(base::StartsWith(
+ webfonts_intervention_v2_group_name,
+ switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith3G,
+ base::CompareCase::INSENSITIVE_ASCII));
WebRuntimeFeatures::enableWebFontsInterventionV2With2G(base::StartsWith(
webfonts_intervention_v2_group_name,
switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith2G,

Powered by Google App Engine
This is Rietveld 408576698