| Index: content/browser/frame_host/render_frame_host_impl.cc
|
| diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
| index 70c881825f8883a6db53263dc9f27def90943d4f..964e761175246958d748fb00822249cec5629955 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -59,8 +59,6 @@
|
| #include "content/public/browser/browser_plugin_guest_manager.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/content_browser_client.h"
|
| -#include "content/public/browser/permission_manager.h"
|
| -#include "content/public/browser/permission_type.h"
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_widget_host_view.h"
|
| #include "content/public/browser/stream_handle.h"
|
| @@ -1709,18 +1707,11 @@ void RenderFrameHostImpl::OnHidePopup() {
|
| #endif
|
|
|
| void RenderFrameHostImpl::RegisterMojoServices() {
|
| - GeolocationServiceContext* geolocation_service_context =
|
| - delegate_ ? delegate_->GetGeolocationServiceContext() : NULL;
|
| - if (geolocation_service_context) {
|
| - // TODO(creis): Bind process ID here so that GeolocationServiceImpl
|
| - // can perform permissions checks once site isolation is complete.
|
| - // crbug.com/426384
|
| - GetServiceRegistry()->AddService<GeolocationService>(
|
| - base::Bind(&GeolocationServiceContext::CreateService,
|
| - base::Unretained(geolocation_service_context),
|
| - base::Bind(&RenderFrameHostImpl::DidUseGeolocationPermission,
|
| - base::Unretained(this))));
|
| - }
|
| + // TODO(creis): Bind process ID here so that GeolocationServiceImpl
|
| + // can perform permissions checks once site isolation is complete.
|
| + // crbug.com/426384
|
| + GetServiceRegistry()->AddService(
|
| + base::Bind(&GeolocationServiceContext::CreateService, this));
|
|
|
| WakeLockServiceContext* wake_lock_service_context =
|
| delegate_ ? delegate_->GetWakeLockServiceContext() : nullptr;
|
| @@ -2266,19 +2257,6 @@ void RenderFrameHostImpl::SendNavigateMessage(
|
| routing_id_, common_params, start_params, request_params));
|
| }
|
|
|
| -void RenderFrameHostImpl::DidUseGeolocationPermission() {
|
| - PermissionManager* permission_manager =
|
| - GetSiteInstance()->GetBrowserContext()->GetPermissionManager();
|
| - if (!permission_manager)
|
| - return;
|
| -
|
| - permission_manager->RegisterPermissionUsage(
|
| - PermissionType::GEOLOCATION,
|
| - GetLastCommittedURL().GetOrigin(),
|
| - frame_tree_node()->frame_tree()->GetMainFrame()
|
| - ->GetLastCommittedURL().GetOrigin());
|
| -}
|
| -
|
| void RenderFrameHostImpl::UpdatePermissionsForNavigation(
|
| const CommonNavigationParams& common_params,
|
| const RequestNavigationParams& request_params) {
|
|
|