| Index: content/browser/devtools/protocol/page_handler.cc
|
| diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
|
| index 6f5f3617dc95b1423284a8645d2a164c2611ef51..856352e0bcbb9db3ea978e8caac864d5984c9f37 100644
|
| --- a/content/browser/devtools/protocol/page_handler.cc
|
| +++ b/content/browser/devtools/protocol/page_handler.cc
|
| @@ -12,7 +12,7 @@
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "content/browser/devtools/protocol/color_picker.h"
|
| #include "content/browser/devtools/protocol/usage_and_quota_query.h"
|
| -#include "content/browser/geolocation/geolocation_service_context.h"
|
| +#include "content/browser/geolocation/geolocation_dispatcher_host.h"
|
| #include "content/browser/renderer_host/render_view_host_impl.h"
|
| #include "content/browser/renderer_host/render_widget_host_view_base.h"
|
| #include "content/browser/web_contents/web_contents_impl.h"
|
| @@ -237,8 +237,8 @@
|
| if (!web_contents)
|
| return Response::InternalError("No WebContents to override");
|
|
|
| - GeolocationServiceContext* geolocation_context =
|
| - web_contents->GetGeolocationServiceContext();
|
| + GeolocationDispatcherHost* geolocation_host =
|
| + web_contents->geolocation_dispatcher_host();
|
| scoped_ptr<Geoposition> geoposition(new Geoposition());
|
| if (latitude && longitude && accuracy) {
|
| geoposition->latitude = *latitude;
|
| @@ -251,7 +251,7 @@
|
| } else {
|
| geoposition->error_code = Geoposition::ERROR_CODE_POSITION_UNAVAILABLE;
|
| }
|
| - geolocation_context->SetOverride(geoposition.Pass());
|
| + geolocation_host->SetOverride(geoposition.Pass());
|
| return Response::OK();
|
| }
|
|
|
| @@ -264,9 +264,9 @@
|
| if (!web_contents)
|
| return Response::InternalError("No WebContents to override");
|
|
|
| - GeolocationServiceContext* geolocation_context =
|
| - web_contents->GetGeolocationServiceContext();
|
| - geolocation_context->ClearOverride();
|
| + GeolocationDispatcherHost* geolocation_host =
|
| + web_contents->geolocation_dispatcher_host();
|
| + geolocation_host->ClearOverride();
|
| return Response::OK();
|
| }
|
|
|
|
|