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

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: Changes to comments and closure wrap 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
« no previous file with comments | « components/dom_distiller/core/url_utils.cc ('k') | components/resources/dom_distiller_resources.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/dom_distiller/core/url_utils.cc ('k') | components/resources/dom_distiller_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698