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

Unified Diff: chrome/browser/dom_distiller/tab_utils_android.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/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 7dcef2583d263abc792b135f8825af790effe5f1..9e08d54b5fe6185688c7cb706d5ce22b4b8a1842 100644
--- a/chrome/browser/dom_distiller/tab_utils_android.cc
+++ b/chrome/browser/dom_distiller/tab_utils_android.cc
@@ -24,20 +24,24 @@ namespace android {
void DistillCurrentPageAndView(JNIEnv* env,
jclass clazz,
jobject j_web_contents) {
+#if !defined(USE_AURA)
content::WebContents* web_contents =
content::WebContents::FromJavaWebContents(j_web_contents);
::DistillCurrentPageAndView(web_contents);
+#endif
}
void DistillAndView(JNIEnv* env,
jclass clazz,
jobject j_source_web_contents,
jobject j_destination_web_contents) {
+#if !defined(USE_AURA)
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);
+#endif
}
jstring GetFormattedUrlFromOriginalDistillerUrl(JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698