Index: chrome/renderer/renderer_glue.cc |
=================================================================== |
--- chrome/renderer/renderer_glue.cc (revision 14070) |
+++ chrome/renderer/renderer_glue.cc (working copy) |
@@ -215,8 +215,10 @@ |
} |
bool GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { |
- return RenderThread::current()->Send( |
- new ViewHostMsg_GetPlugins(refresh, plugins)); |
+ if (!RenderThread::current()->plugin_refresh_allowed()) |
+ refresh = false; |
+ return RenderThread::current()->Send(new ViewHostMsg_GetPlugins( |
+ refresh, plugins)); |
} |
// static factory function |