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

Unified Diff: chrome/browser/dom_distiller/tab_utils_android.cc

Issue 2342873005: Disable Reader Mode when requesting desktop site (Closed)
Patch Set: fix tests 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/android/javatests/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_distiller/tab_utils_android.cc
diff --git a/chrome/browser/dom_distiller/tab_utils_android.cc b/chrome/browser/dom_distiller/tab_utils_android.cc
index d48bab9f2072ce26be581d06fec1749255aa9a22..df6a1ffecff5ddaf3ddc641d97d0a05436ee89e6 100644
--- a/chrome/browser/dom_distiller/tab_utils_android.cc
+++ b/chrome/browser/dom_distiller/tab_utils_android.cc
@@ -68,6 +68,13 @@ jboolean IsDistillerHeuristicsEnabled(JNIEnv* env,
!= dom_distiller::DistillerHeuristicsType::NONE;
}
+// Returns true if distiller is reporting every page as distillable.
+jboolean IsHeuristicAlwaysTrue(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
+ return dom_distiller::GetDistillerHeuristicsType()
+ == dom_distiller::DistillerHeuristicsType::ALWAYS_TRUE;
+}
+
} // namespace android
bool RegisterDomDistillerTabUtils(JNIEnv* env) {
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698