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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DomDistillerTabUtils.java

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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DomDistillerTabUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DomDistillerTabUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DomDistillerTabUtils.java
index beacb67ecae5cebdf83f103bf779854aa2bfa4b9..58e4ac944ff2cead07dc3397e8e53e9a67b7e1d8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DomDistillerTabUtils.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DomDistillerTabUtils.java
@@ -59,9 +59,20 @@ public class DomDistillerTabUtils {
return nativeIsDistillerHeuristicsEnabled();
}
+ /**
+ * Check if the distiller is reporting every page as distillable.
+ *
+ * @return True if heuristic is ALWAYS_TRUE.
+ */
+ public static boolean isHeuristicAlwaysTrue() {
+ return nativeIsHeuristicAlwaysTrue();
+ }
+
+
private static native void nativeDistillCurrentPageAndView(WebContents webContents);
private static native void nativeDistillAndView(
WebContents sourceWebContents, WebContents destinationWebContents);
private static native String nativeGetFormattedUrlFromOriginalDistillerUrl(String url);
private static native boolean nativeIsDistillerHeuristicsEnabled();
+ private static native boolean nativeIsHeuristicAlwaysTrue();
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698