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

Unified Diff: components/dom_distiller/core/url_utils_android.cc

Issue 464973002: JavaScript that returns whether or not a page is an article (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed names to distillable 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/core/url_utils_android.cc
diff --git a/components/dom_distiller/core/url_utils_android.cc b/components/dom_distiller/core/url_utils_android.cc
index 50b0266060c1ea9bd15875e3bde1887c3990e064..f94530206881ed8ce10b8b511d38f4c19692af6b 100644
--- a/components/dom_distiller/core/url_utils_android.cc
+++ b/components/dom_distiller/core/url_utils_android.cc
@@ -63,6 +63,11 @@ jboolean IsUrlDistillable(JNIEnv* env, jclass clazz, jstring j_url) {
return dom_distiller::url_utils::IsUrlDistillable(url);
}
+jstring GetIsDistillableJs(JNIEnv* env, jclass clazz) {
+ return base::android::ConvertUTF8ToJavaString(
+ env, dom_distiller::url_utils::GetIsDistillableJs()).Release();
+}
+
bool RegisterUrlUtils(JNIEnv* env) { return RegisterNativesImpl(env); }
} // namespace android

Powered by Google App Engine
This is Rietveld 408576698