diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 09:48:02 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 09:48:02 +0000 |
commit | 45a22e6bb37520f820a4338d2454b5232260fe56 (patch) | |
tree | 466e4590fff217ce934c44ceb672dfe98161af03 /chrome/browser/plugin_prefs_factory.cc | |
parent | 9167d1a87735107d02ceadfa3b8939559b9199ca (diff) | |
download | chromium_src-45a22e6bb37520f820a4338d2454b5232260fe56.zip chromium_src-45a22e6bb37520f820a4338d2454b5232260fe56.tar.gz chromium_src-45a22e6bb37520f820a4338d2454b5232260fe56.tar.bz2 |
Only purge plug-in list caches for renderers belonging to a given profile.
Also, unify the behavior when we detect that plug-ins on disk have changed. We should purge the caches in that case, but not force a page reload.
BUG=99459
TEST=
Review URL: http://codereview.chromium.org/8231007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_prefs_factory.cc')
-rw-r--r-- | chrome/browser/plugin_prefs_factory.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/plugin_prefs_factory.cc b/chrome/browser/plugin_prefs_factory.cc index 3cac28a..f43d261 100644 --- a/chrome/browser/plugin_prefs_factory.cc +++ b/chrome/browser/plugin_prefs_factory.cc @@ -56,6 +56,7 @@ PluginPrefsFactory::~PluginPrefsFactory() {} ProfileKeyedService* PluginPrefsFactory::BuildServiceInstanceFor( Profile* profile) const { scoped_refptr<PluginPrefs> plugin_prefs(new PluginPrefs()); + plugin_prefs->set_profile(profile->GetOriginalProfile()); plugin_prefs->SetPrefs(profile->GetPrefs()); return new PluginPrefsWrapper(plugin_prefs); } |