Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2075)

Unified Diff: android_webview/native/aw_contents.cc

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b01c41feb5e01d5eda0d187bdc458965aa3e0832 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -697,6 +697,9 @@ void AwContents::SetIsPaused(JNIEnv* env, jobject obj, bool paused) {
ContentViewCore::FromWebContents(web_contents_.get());
if (cvc)
cvc->PauseVideo();
+ web_contents_->PauseGeolocation();
+ } else {
+ web_contents_->ResumeGeolocation();
}
}

Powered by Google App Engine
This is Rietveld 408576698