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

Unified Diff: content/child/runtime_features.cc

Issue 2349593002: Wire WebFonts intervention v2 for ECT of 3G (Closed)
Patch Set: rebased 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 44a0a8a4b45185e028c0c3b6dba8f796ea31ba87..6445793e2d18e1583ad0206b114692ddca77ab5f 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -206,6 +206,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
webfonts_intervention_v2_about_flag.compare(
switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith2G) ==
0);
+ WebRuntimeFeatures::enableWebFontsInterventionV2With3G(
+ webfonts_intervention_v2_about_flag.compare(
+ switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith3G) ==
+ 0);
WebRuntimeFeatures::enableWebFontsInterventionV2WithSlow2G(
webfonts_intervention_v2_about_flag.compare(
switches::
@@ -216,6 +220,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
webfonts_intervention_v2_group_name,
switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith2G,
base::CompareCase::INSENSITIVE_ASCII));
+ WebRuntimeFeatures::enableWebFontsInterventionV2With3G(base::StartsWith(
+ webfonts_intervention_v2_group_name,
+ switches::kEnableWebFontsInterventionV2SwitchValueEnabledWith3G,
+ base::CompareCase::INSENSITIVE_ASCII));
WebRuntimeFeatures::enableWebFontsInterventionV2WithSlow2G(base::StartsWith(
webfonts_intervention_v2_group_name,
switches::kEnableWebFontsInterventionV2SwitchValueEnabledWithSlow2G,
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698