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 ed768127dff74ab673870f4b54688167f0edf23b..8b11b09eb6d301e39eea91d81ffe36b5614251c1 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 |
@@ -27,5 +27,16 @@ public class DomDistillerTabUtils { |
nativeDistillCurrentPageAndView(webContents); |
} |
+ /** |
+ * Returns the formatted version of the original URL of a distillation, given the original URL. |
+ * |
+ * @param url The original URL. |
+ * @return the formatted URL of the original page. |
+ */ |
+ public static String getFormattedUrlFromOriginalDistillerUrl(String url) { |
+ return nativeGetFormattedUrlFromOriginalDistillerUrl(url); |
+ } |
+ |
private static native void nativeDistillCurrentPageAndView(WebContents webContents); |
+ private static native String nativeGetFormattedUrlFromOriginalDistillerUrl(String url); |
} |