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

Unified Diff: components/dom_distiller/content/browser/distillable_page_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: components/dom_distiller/content/browser/distillable_page_utils_android.cc
diff --git a/components/dom_distiller/content/browser/distillable_page_utils_android.cc b/components/dom_distiller/content/browser/distillable_page_utils_android.cc
index bf1f80dbe17cca72b5bac8b267b9f84ee12c1d7e..7e3207b3ab58f98e10f8f827f14af35555e4fa49 100644
--- a/components/dom_distiller/content/browser/distillable_page_utils_android.cc
+++ b/components/dom_distiller/content/browser/distillable_page_utils_android.cc
@@ -15,6 +15,7 @@ using base::android::ScopedJavaGlobalRef;
namespace dom_distiller {
namespace android {
namespace {
+#if !defined(USE_AURA)
void OnIsPageDistillableResult(
scoped_ptr<ScopedJavaGlobalRef<jobject>> callback_holder,
bool isDistillable) {
@@ -22,6 +23,7 @@ void OnIsPageDistillableResult(
base::android::AttachCurrentThread(), callback_holder->obj(),
isDistillable);
}
+#endif
} // namespace
static void IsPageDistillable(JNIEnv* env,
@@ -29,6 +31,7 @@ static void IsPageDistillable(JNIEnv* env,
jobject webContents,
jboolean is_mobile_optimized,
jobject callback) {
+#if !defined(USE_AURA)
content::WebContents* web_contents(
content::WebContents::FromJavaWebContents(webContents));
scoped_ptr<ScopedJavaGlobalRef<jobject>> callback_holder(
@@ -44,6 +47,7 @@ static void IsPageDistillable(JNIEnv* env,
IsDistillablePage(
web_contents, is_mobile_optimized,
base::Bind(OnIsPageDistillableResult, base::Passed(&callback_holder)));
+#endif
}
bool RegisterDistillablePageUtils(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698