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 c945e389582606988424d09c98eee87703f3fd64..70cace2e96f3de5d98dfc5a60d1ed897289d10d4 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -1837,7 +1837,7 @@ void RenderFrameHostImpl::RegisterMojoServices() { |
// latter is triggered by receiving a message that the pipe was closed from |
// the renderer side. Hence, supply the reference to this object as a weak |
// pointer. |
- GetServiceRegistry()->AddService<GeolocationService>( |
+ GetServiceRegistry()->AddService( |
base::Bind(&GeolocationServiceContext::CreateService, |
base::Unretained(geolocation_service_context), |
base::Bind(&RenderFrameHostImpl::DidUseGeolocationPermission, |
@@ -1859,7 +1859,7 @@ void RenderFrameHostImpl::RegisterMojoServices() { |
if (!permission_service_context_) |
permission_service_context_.reset(new PermissionServiceContext(this)); |
- GetServiceRegistry()->AddService<PermissionService>( |
+ GetServiceRegistry()->AddService( |
base::Bind(&PermissionServiceContext::CreateService, |
base::Unretained(permission_service_context_.get()))); |