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

Unified Diff: chrome/browser/android/document/document_web_contents_delegate.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/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) {

Powered by Google App Engine
This is Rietveld 408576698