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 0e3893bb9fc12eafe83901d050fe7ddf8b2509f9..0324bcfec33bbac6e059143b6c310c26da357189 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) |