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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp

Issue 1612803002: Test distillability on all pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mobile-distillable
Patch Set: address jwd's comment Created 4 years, 10 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: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
index 010f9bc2e96467106361df204c21a1f65fa01a46..29aca56fa94bdfc3f17f0dc798e0d9200b1932da 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
@@ -228,11 +228,7 @@ WebDistillabilityFeatures DocumentStatisticsCollector::collectStatistics(Documen
if (!body || !head)
return features;
- if (isMobileFriendly(document)) {
- features.isMobileFriendly = true;
- // We only trigger Reader Mode on non-mobile-friendly pages for now.
- return features;
- }
+ features.isMobileFriendly = isMobileFriendly(document);
double startTime = monotonicallyIncreasingTime();
« no previous file with comments | « components/dom_distiller/content/renderer/distillability_agent.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698