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 8d156c54bac26878a99cb9e0ba9152dfa64edc8c..e5bc1241f702c7d41e6a04aa6b5ab9bf70cf21d9 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -40,7 +40,6 @@ |
#include "content/browser/appcache/chrome_appcache_service.h" |
#include "content/browser/browser_main.h" |
#include "content/browser/browser_main_loop.h" |
-#include "content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h" |
#include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
#include "content/browser/child_process_security_policy_impl.h" |
#include "content/browser/device_orientation/device_motion_message_filter.h" |
@@ -229,9 +228,6 @@ void DisableAecDumpOnFileThread() { |
base::LazyInstance<IDMap<RenderProcessHost> >::Leaky |
g_all_hosts = LAZY_INSTANCE_INITIALIZER; |
-base::LazyInstance<scoped_refptr<BrowserPluginGeolocationPermissionContext> > |
- g_browser_plugin_geolocation_context = LAZY_INSTANCE_INITIALIZER; |
- |
// Map of site to process, to ensure we only have one RenderProcessHost per |
// site in process-per-site mode. Each map is specific to a BrowserContext. |
class SiteProcessMap : public base::SupportsUserData::Data { |
@@ -687,17 +683,8 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
AddFilter(new IndexedDBDispatcherHost( |
storage_partition_impl_->GetIndexedDBContext())); |
- if (IsGuest()) { |
- if (!g_browser_plugin_geolocation_context.Get().get()) { |
- g_browser_plugin_geolocation_context.Get() = |
- new BrowserPluginGeolocationPermissionContext(); |
- } |
- geolocation_dispatcher_host_ = GeolocationDispatcherHost::New( |
- GetID(), g_browser_plugin_geolocation_context.Get().get()); |
- } else { |
- geolocation_dispatcher_host_ = 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_); |