summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_service.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-09 13:32:29 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-09 13:32:29 +0000
commit851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c (patch)
treea409d4ec9b6804999d0ea4bf25750d6e896f90ba /chrome/browser/plugin_service.cc
parentb089b89cabbb56d499dcbe2ee070e20710d362ef (diff)
downloadchromium_src-851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c.zip
chromium_src-851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c.tar.gz
chromium_src-851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c.tar.bz2
Disable outdated non-sandboxed plugins.
Relanding r55227, which had a compile error. BUG=47731 TEST=Run with --disable-outdated-plugins Review URL: http://codereview.chromium.org/3071028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_service.cc')
-rw-r--r--chrome/browser/plugin_service.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc
index c87f3fd..fb15c54 100644
--- a/chrome/browser/plugin_service.cc
+++ b/chrome/browser/plugin_service.cc
@@ -63,6 +63,11 @@ void PluginService::InitGlobalInstance(Profile* profile) {
// We first group the plugins and then figure out which groups to disable.
plugin_updater::DisablePluginGroupsFromPrefs(profile);
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableOutdatedPlugins)) {
+ plugin_updater::DisableOutdatedPluginGroups();
+ }
+
// Have Chrome plugins write their data to the profile directory.
GetInstance()->SetChromePluginDataDir(profile->GetPath());
}