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

Unified Diff: components/dom_distiller/core/experiments.cc

Issue 2212663003: Make AdaBoost the default heuristic for ReaderModeUI finch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add disabled group Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/experiments.cc
diff --git a/components/dom_distiller/core/experiments.cc b/components/dom_distiller/core/experiments.cc
index f3927b8a94b404de69eefb6e23942a77b5a3cf29..cc882d1f0fb469d47a161261cf08eac66154932a 100644
--- a/components/dom_distiller/core/experiments.cc
+++ b/components/dom_distiller/core/experiments.cc
@@ -40,8 +40,12 @@ DistillerHeuristicsType GetDistillerHeuristicsType() {
base::CompareCase::INSENSITIVE_ASCII)) {
return DistillerHeuristicsType::OG_ARTICLE;
}
+ if (base::StartsWith(group_name, "Disabled",
+ base::CompareCase::INSENSITIVE_ASCII)) {
+ return DistillerHeuristicsType::NONE;
+ }
}
- return DistillerHeuristicsType::NONE;
+ return DistillerHeuristicsType::ADABOOST_MODEL;
}
bool ShouldShowFeedbackForm() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698