| Index: android_webview/native/aw_contents.cc
|
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
|
| index 4bdcf7ee2662a29f596dde2c22969756fc4adf9e..05c612263b87d5b1890d4c3a3deeb14b082df5fa 100644
|
| --- a/android_webview/native/aw_contents.cc
|
| +++ b/android_webview/native/aw_contents.cc
|
| @@ -692,11 +692,15 @@ void AwContents::SetWindowVisibility(JNIEnv* env, jobject obj, bool visible) {
|
|
|
| void AwContents::SetIsPaused(JNIEnv* env, jobject obj, bool paused) {
|
| 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) {
|
| + if (paused) {
|
| cvc->PauseVideo();
|
| + cvc->PauseGeolocation();
|
| + } else {
|
| + cvc->ResumeGeolocation();
|
| + }
|
| }
|
| }
|
|
|
|
|