Index: chrome/browser/android/document/document_web_contents_delegate.cc |
diff --git a/chrome/browser/android/document/document_web_contents_delegate.cc b/chrome/browser/android/document/document_web_contents_delegate.cc |
index a56362a28a02acdc537c6a23e682fdfacc3d012c..6d354584de6a7d1ed210429dec21a511f2efdd8a 100644 |
--- a/chrome/browser/android/document/document_web_contents_delegate.cc |
+++ b/chrome/browser/android/document/document_web_contents_delegate.cc |
@@ -19,9 +19,11 @@ DocumentWebContentsDelegate::~DocumentWebContentsDelegate() { |
void DocumentWebContentsDelegate::AttachContents(JNIEnv* env, |
jobject jcaller, |
jobject jweb_contents) { |
+#if !defined(USE_AURA) |
content::WebContents* web_contents = |
content::WebContents::FromJavaWebContents(jweb_contents); |
web_contents->SetDelegate(this); |
+#endif |
} |
bool DocumentWebContentsDelegate::Register(JNIEnv* env) { |