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(); |
} |