| 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 10439713a590c7bbae54e54d1ab4bf2a187bb488..9f184113133b630beaa5a8fef299d9cf2003a0d8 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"
|
| @@ -615,17 +614,19 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
| storage_partition_impl_->GetIndexedDBContext()));
|
| AddFilter(new ServiceWorkerDispatcherHost(
|
| GetID(), storage_partition_impl_->GetServiceWorkerContext()));
|
| + geolocation_dispatcher_host_ = NULL;
|
| if (IsGuest()) {
|
| if (!g_browser_plugin_geolocation_context.Get().get()) {
|
| 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)
|
|
|