Index: components/web_contents_delegate_android/web_contents_delegate_android.cc |
diff --git a/components/web_contents_delegate_android/web_contents_delegate_android.cc b/components/web_contents_delegate_android/web_contents_delegate_android.cc |
index c85896bde4c56550b17eea059006c661bf63eaf2..178ae3d95160c834fb143bcff515265a1b21358d 100644 |
--- a/components/web_contents_delegate_android/web_contents_delegate_android.cc |
+++ b/components/web_contents_delegate_android/web_contents_delegate_android.cc |
@@ -318,12 +318,7 @@ void WebContentsDelegateAndroid::ShowRepostFormWarningDialog( |
ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); |
if (obj.is_null()) |
return; |
- ScopedJavaLocalRef<jobject> content_view_core = |
- content::ContentViewCore::FromWebContents(source)->GetJavaObject(); |
- if (content_view_core.is_null()) |
- return; |
- Java_WebContentsDelegateAndroid_showRepostFormWarningDialog(env, obj.obj(), |
- content_view_core.obj()); |
+ Java_WebContentsDelegateAndroid_showRepostFormWarningDialog(env, obj.obj()); |
} |
void WebContentsDelegateAndroid::ToggleFullscreenModeForTab( |