| 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) {
|
|
|