Index: chrome/browser/renderer_host/plugin_info_message_filter.cc |
diff --git a/chrome/browser/renderer_host/plugin_info_message_filter.cc b/chrome/browser/renderer_host/plugin_info_message_filter.cc |
index a00f5d88fb5d8242202eb29917217fd039e9f8cf..07c51dd9adc613c5fc413209fc9f0624edbe15e3 100644 |
--- a/chrome/browser/renderer_host/plugin_info_message_filter.cc |
+++ b/chrome/browser/renderer_host/plugin_info_message_filter.cc |
@@ -18,6 +18,7 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/plugin_service.h" |
#include "content/public/browser/plugin_service_filter.h" |
+#include "content/public/browser/storage_partition.h" |
#include "googleurl/src/gurl.h" |
#include "webkit/plugins/npapi/plugin_group.h" |
#include "webkit/plugins/npapi/plugin_list.h" |
@@ -33,7 +34,9 @@ using webkit::WebPluginInfo; |
PluginInfoMessageFilter::Context::Context(int render_process_id, |
Profile* profile) |
: render_process_id_(render_process_id), |
- resource_context_(profile->GetResourceContext()), |
+ resource_context_( |
+ content::BrowserContext::GetDefaultStoragePartition(profile)-> |
+ GetResourceContext()), |
host_content_settings_map_(profile->GetHostContentSettingsMap()) { |
allow_outdated_plugins_.Init(prefs::kPluginsAllowOutdated, |
profile->GetPrefs(), NULL); |