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

Unified Diff: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java

Issue 442503002: Retrieve article original URL from entryID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests for viewer, styling 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: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java
diff --git a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java
index dc31b20d56f1105a3c4dab1e1b50a791e02f393c..10b5d1ecb7f3bb2f72ebc99c27a3d9b4452ff902 100644
--- a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java
+++ b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java
@@ -49,8 +49,13 @@ public final class DomDistillerUrlUtils {
return nativeIsUrlDistillable(url);
}
+ public static String getValueForKeyInUrl(String url, String key) {
+ return nativeGetValueForKeyInUrl(url, key);
+ }
+
private static native String nativeGetDistillerViewUrlFromUrl(String scheme, String url);
private static native String nativeGetOriginalUrlFromDistillerUrl(String viewerUrl);
private static native boolean nativeIsDistilledPage(String url);
private static native boolean nativeIsUrlDistillable(String url);
+ private static native String nativeGetValueForKeyInUrl(String url, String key);
}

Powered by Google App Engine
This is Rietveld 408576698