| 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 d002203719b21d1c855bf0dc7472271ffb83f2b4..541bc741e7b71e96124ef2b5a5bfb131e36cc3ea 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_impl_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_->GetGeolocationContext()->PauseUpdates();
|
| + else
|
| + web_contents_->GetGeolocationContext()->ResumeUpdates();
|
| }
|
|
|
| // All positions and sizes are in CSS pixels.
|
|
|