diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 22:05:45 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 22:05:45 +0000 |
commit | b78e168b1640e456e1fc5a1ca8956a4a50c7df94 (patch) | |
tree | cbadab016871c254617ec26ab2d4c6987033b1c4 /chrome/renderer/render_thread.cc | |
parent | a66e24c34a22a4a183b91ad80d74e896a4f4db5f (diff) | |
download | chromium_src-b78e168b1640e456e1fc5a1ca8956a4a50c7df94.zip chromium_src-b78e168b1640e456e1fc5a1ca8956a4a50c7df94.tar.gz chromium_src-b78e168b1640e456e1fc5a1ca8956a4a50c7df94.tar.bz2 |
Update renderer plugin cache when we load/unload extensions with plugins.
BUG=12306
TEST=Load and unload extensions that contain plugins and visit pages that use them. Also covered by tests.
Review URL: http://codereview.chromium.org/201111
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.cc')
-rw-r--r-- | chrome/renderer/render_thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index e7c04ed..788b852 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -490,12 +490,12 @@ void RenderThread::OnExtensionMessageInvoke(const std::string& function_name, RendererExtensionBindings::Invoke(function_name, args, NULL); } -void RenderThread::OnPurgePluginListCache() { +void RenderThread::OnPurgePluginListCache(bool reload_pages) { // The call below will cause a GetPlugins call with refresh=true, but at this // point we already know that the browser has refreshed its list, so disable // refresh temporarily to prevent each renderer process causing the list to be // regenerated. plugin_refresh_allowed_ = false; - WebKit::resetPluginCache(); + WebKit::resetPluginCache(reload_pages); plugin_refresh_allowed_ = true; } |