Index: android_webview/native/aw_contents.cc |
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc |
index f949da08442c00b993d22b23376396b90c8c73fb..909a83a7fc6221c3a664916ec413840f6c913a51 100644 |
--- a/android_webview/native/aw_contents.cc |
+++ b/android_webview/native/aw_contents.cc |
@@ -733,12 +733,15 @@ void AwContents::SetWindowVisibility(JNIEnv* env, jobject obj, bool visible) { |
void AwContents::SetIsPaused(JNIEnv* env, jobject obj, bool paused) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
browser_view_renderer_->SetIsPaused(paused); |
- if (paused) { |
- ContentViewCore* cvc = |
+ ContentViewCore* cvc = |
ContentViewCore::FromWebContents(web_contents_.get()); |
- if (cvc) |
- cvc->PauseVideo(); |
- } |
+ if (!cvc) |
+ return; |
+ |
+ if (paused) |
+ cvc->PauseVideo(); |
+ else |
+ cvc->ResumeFullscreenVideo(); |
} |
void AwContents::OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h) { |