Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 6a022123ba4b31b670f84b17b41f74875e34edf5..5641bd18e52e8782c2fcdd5e52c2d2f45993bbbc 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -23,7 +23,7 @@ |
#include "content/browser/android/load_url_params.h" |
#include "content/browser/android/popup_touch_handle_drawable.h" |
#include "content/browser/frame_host/interstitial_page_impl.h" |
-#include "content/browser/geolocation/geolocation_dispatcher_host.h" |
+#include "content/browser/geolocation/geolocation_service_context.h" |
#include "content/browser/media/media_web_contents_observer.h" |
#include "content/browser/renderer_host/compositor_impl_android.h" |
#include "content/browser/renderer_host/input/motion_event_android.h" |
@@ -363,7 +363,10 @@ jint ContentViewCoreImpl::GetBackgroundColor(JNIEnv* env, jobject obj) { |
} |
void ContentViewCoreImpl::PauseOrResumeGeolocation(bool should_pause) { |
- web_contents_->geolocation_dispatcher_host()->PauseOrResume(should_pause); |
+ if (should_pause) |
+ web_contents_->GetGeolocationServiceContext()->PauseUpdates(); |
+ else |
+ web_contents_->GetGeolocationServiceContext()->ResumeUpdates(); |
} |
// All positions and sizes are in CSS pixels. |