Index: chrome/browser/dom_distiller/tab_utils_android.cc |
diff --git a/chrome/browser/dom_distiller/tab_utils_android.cc b/chrome/browser/dom_distiller/tab_utils_android.cc |
index 855fba687e7b83c013d60bc1c9000568ef1e2654..83598cbe5bbbc90baa77c4a624117607c26604d7 100644 |
--- a/chrome/browser/dom_distiller/tab_utils_android.cc |
+++ b/chrome/browser/dom_distiller/tab_utils_android.cc |
@@ -28,6 +28,17 @@ void DistillCurrentPageAndView(JNIEnv* env, |
::DistillCurrentPageAndView(web_contents); |
} |
+void DistillAndView(JNIEnv* env, |
+ jclass clazz, |
+ jobject j_source_web_contents, |
+ jobject j_destination_web_contents) { |
+ content::WebContents* source_web_contents = |
+ content::WebContents::FromJavaWebContents(j_source_web_contents); |
+ content::WebContents* destination_web_contents = |
+ content::WebContents::FromJavaWebContents(j_destination_web_contents); |
+ ::DistillAndView(source_web_contents, destination_web_contents); |
+} |
+ |
jstring GetFormattedUrlFromOriginalDistillerUrl(JNIEnv* env, |
jclass clazz, |
jstring j_url) { |