summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_glue.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 23:16:27 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 23:16:27 +0000
commitb547fd44ca39e90e6416da8a5ffc040fa9d2446c (patch)
treee99a4dd4e1d05e0d8ceb2c1db2f8c45ba4b2bc2a /chrome/renderer/renderer_glue.cc
parentb2225f18acfce00b1a8a9f25a7ad2ef8450bb6a9 (diff)
downloadchromium_src-b547fd44ca39e90e6416da8a5ffc040fa9d2446c.zip
chromium_src-b547fd44ca39e90e6416da8a5ffc040fa9d2446c.tar.gz
chromium_src-b547fd44ca39e90e6416da8a5ffc040fa9d2446c.tar.bz2
Allow Flash (and other plugins) to be installed without restarting the browser. This works by monitoring the MozillaPlugins registry key and reloading the plugin list afterwards.
Note: I'll commit the WebKit change separately, but putting it in this change right now so everything can be reviewed together. BUG=10574 Review URL: http://codereview.chromium.org/88020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_glue.cc')
-rw-r--r--chrome/renderer/renderer_glue.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 68f4fce..b649629 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -215,8 +215,10 @@ std::string GetUIResourceProtocol() {
}
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