diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 13:32:29 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 13:32:29 +0000 |
commit | 851b1eb7c1ccf13b7fb7627bca78f7aefd03c67c (patch) | |
tree | a409d4ec9b6804999d0ea4bf25750d6e896f90ba /chrome/browser/plugin_service.cc | |
parent | b089b89cabbb56d499dcbe2ee070e20710d362ef (diff) | |
download | chromium_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.cc | 5 |
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()); } |