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

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

Issue 454063003: Added GetFormattedUrlFromOriginalDistillerUrl to DomDistillerTabUtils (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved comment Created 6 years, 4 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: 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);
}
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/tab_utils_android.cc » ('j') | chrome/browser/dom_distiller/tab_utils_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698