| Index: android_webview/native/aw_contents.cc
|
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
|
| index ea32b0c3c72a5c03ba08effb83912ab4e42a49b8..a4b5a8c1a98cbeb777717b15f6cc11620c5e6a66 100644
|
| --- a/android_webview/native/aw_contents.cc
|
| +++ b/android_webview/native/aw_contents.cc
|
| @@ -722,11 +722,13 @@ 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::FromWebContents(web_contents_.get());
|
| - if (cvc)
|
| + ContentViewCore* cvc =
|
| + ContentViewCore::FromWebContents(web_contents_.get());
|
| + if (cvc) {
|
| + cvc->PauseOrResumeGeolocation(paused);
|
| + if (paused) {
|
| cvc->PauseVideo();
|
| + }
|
| }
|
| }
|
|
|
|
|