summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_updater.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 07:37:42 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 07:37:42 +0000
commit84bee7eacce94576b79e295595394181a015ac8a (patch)
tree9a39f6f092b4691032dc9ce9a6c17684a03b11b7 /chrome/browser/plugin_updater.cc
parentd81288a066ccb0b938fa883a67dad1fa232dd550 (diff)
downloadchromium_src-84bee7eacce94576b79e295595394181a015ac8a.zip
chromium_src-84bee7eacce94576b79e295595394181a015ac8a.tar.gz
chromium_src-84bee7eacce94576b79e295595394181a015ac8a.tar.bz2
Disable outdated plug-ins on a per-plugin basis.
Change the automatic disabling of outdated plugins (with --disable-outdated-plugins) so that a single plugin is disabled if it is out of date instead of the whole group. This makes it possible to fall back on a newer version of a plugin that would otherwise have lower priority. BUG=47731,51728 TEST=Install an old version and a new version of a plugin, run with --disable-outdated-plugins. The old version should be disabled, and the effective version of the plugin group should be the new one. Review URL: http://codereview.chromium.org/3117009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_updater.cc')
-rw-r--r--chrome/browser/plugin_updater.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/plugin_updater.cc b/chrome/browser/plugin_updater.cc
index 90a8daa..0ed1b70 100644
--- a/chrome/browser/plugin_updater.cc
+++ b/chrome/browser/plugin_updater.cc
@@ -216,9 +216,7 @@ void DisableOutdatedPluginGroups() {
groups.begin();
it != groups.end();
++it) {
- if ((*it)->IsVulnerable()) {
- (*it)->Enable(false);
- }
+ (*it)->DisableOutdatedPlugins();
}
}