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

Unified Diff: components/previews/core/previews_experiments.cc

Issue 2870263004: Add an about:flag to enable client-side LoFi (Closed)
Patch Set: Created 3 years, 7 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/flag_descriptions.cc ('k') | components/previews/core/previews_experiments_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/previews/core/previews_experiments.cc
diff --git a/components/previews/core/previews_experiments.cc b/components/previews/core/previews_experiments.cc
index 08ffef7a38a25b5f4f7ed9a72a5d563286f6f254..ccab155619aa9505c219159649ef9c8b5722ad13 100644
--- a/components/previews/core/previews_experiments.cc
+++ b/components/previews/core/previews_experiments.cc
@@ -157,9 +157,10 @@ int OfflinePreviewsVersion() {
}
bool IsClientLoFiEnabled() {
- return base::StartsWith(
- base::FieldTrialList::FindFullName(kClientLoFiExperimentName), kEnabled,
- base::CompareCase::SENSITIVE);
+ return base::FeatureList::IsEnabled(features::kClientLoFi) ||
+ base::StartsWith(
+ base::FieldTrialList::FindFullName(kClientLoFiExperimentName),
+ kEnabled, base::CompareCase::SENSITIVE);
}
int ClientLoFiVersion() {
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | components/previews/core/previews_experiments_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698