Chromium Code Reviews| Index: content/browser/android/content_video_view.cc |
| diff --git a/content/browser/android/content_video_view.cc b/content/browser/android/content_video_view.cc |
| index 8a9eb4298b10848f5ef4681a1de12d339c415a08..996eb9a6ad205b8ff388ddf250aba8168bc328ff 100644 |
| --- a/content/browser/android/content_video_view.cc |
| +++ b/content/browser/android/content_video_view.cc |
| @@ -198,11 +198,15 @@ ScopedJavaLocalRef<jobject> ContentVideoView::GetJavaObject(JNIEnv* env) { |
| } |
| JavaObjectWeakGlobalRef ContentVideoView::CreateJavaObject() { |
| - ContentViewCore* content_view_core = manager_->GetContentViewCore(); |
| + |
| JNIEnv* env = AttachCurrentThread(); |
| + base::android::ScopedJavaLocalRef<jobject> j_content_view_core; |
| + |
| +#if !defined(USE_AURA) |
|
no sievers
2015/11/02 22:27:15
can you TODO(crbug.com/548024)?
mfomitchev
2015/11/03 22:23:19
Done.
|
| + ContentViewCore* content_view_core = manager_->GetContentViewCore(); |
| + j_content_view_core = content_view_core->GetJavaObject(); |
| +#endif |
| - base::android::ScopedJavaLocalRef<jobject> j_content_view_core = |
| - content_view_core->GetJavaObject(); |
| if (j_content_view_core.is_null()) |
| return JavaObjectWeakGlobalRef(env, nullptr); |