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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new test case, fix a bug :) Created 7 years 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: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index c0f23414df16a0af8b116ff4666e5b9b58c2a8b8..5a090ef4da90586b202685eea2931facd2b178d1 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -3146,6 +3146,14 @@ public class ContentViewCore
return mRenderCoordinates;
}
+ @VisibleForTesting
+ public boolean isGeolocationActiveForTesting() {
+ if (mNativeContentViewCore != 0) {
+ return nativeIsGeolocationActiveForTesting(mNativeContentViewCore);
+ }
+ return false;
+ }
+
@CalledByNative
private int getLocationInWindowX() {
return mLocationInWindowX;
@@ -3401,4 +3409,6 @@ public class ContentViewCore
private native void nativeSendActionAfterDoubleTapUma(long nativeContentViewCoreImpl,
int type, boolean hasDelay, int count);
+
+ private native boolean nativeIsGeolocationActiveForTesting(long nativeContentViewCoreImpl);
}

Powered by Google App Engine
This is Rietveld 408576698