Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 90b14e69213d3247a946d2e19b02f5af37b2f617..7beb6797408f07478f717d6fc245228fa0095ba7 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -51,7 +51,6 @@ |
#include "content/browser/fileapi/chrome_blob_storage_context.h" |
#include "content/browser/fileapi/fileapi_message_filter.h" |
#include "content/browser/frame_host/render_frame_message_filter.h" |
-#include "content/browser/geolocation/geolocation_dispatcher_host.h" |
#include "content/browser/gpu/compositor_util.h" |
#include "content/browser/gpu/gpu_data_manager_impl.h" |
#include "content/browser/gpu/gpu_process_host.h" |
@@ -654,12 +653,13 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
g_browser_plugin_geolocation_context.Get() = |
new BrowserPluginGeolocationPermissionContext(); |
} |
- AddFilter(GeolocationDispatcherHost::New( |
- GetID(), g_browser_plugin_geolocation_context.Get().get())); |
+ geolocation_dispatcher_host_ = GeolocationDispatcherHost::New( |
+ GetID(), g_browser_plugin_geolocation_context.Get().get()); |
} else { |
- AddFilter(GeolocationDispatcherHost::New( |
- GetID(), browser_context->GetGeolocationPermissionContext())); |
+ geolocation_dispatcher_host_ = GeolocationDispatcherHost::New( |
+ GetID(), browser_context->GetGeolocationPermissionContext()); |
} |
+ AddFilter(geolocation_dispatcher_host_); |
gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
AddFilter(gpu_message_filter_); |
#if defined(ENABLE_WEBRTC) |