diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 20:23:33 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 20:23:33 +0000 |
commit | 07de4fec682d4e6b0ac77f9d1b9ff72359f3282f (patch) | |
tree | 5edadfde9520b423268f12ce68e4c9f853f5758e /chrome/browser/plugin_installer.cc | |
parent | 2304e71996d5ea8ab0ccdcb0a26368b8698ec295 (diff) | |
download | chromium_src-07de4fec682d4e6b0ac77f9d1b9ff72359f3282f.zip chromium_src-07de4fec682d4e6b0ac77f9d1b9ff72359f3282f.tar.gz chromium_src-07de4fec682d4e6b0ac77f9d1b9ff72359f3282f.tar.bz2 |
Require authorization for plug-ins if our metadata doesn't contain version information.
BUG=130743
TEST=PluginInstallerTest.*
Review URL: https://chromiumcodereview.appspot.com/10512005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_installer.cc')
-rw-r--r-- | chrome/browser/plugin_installer.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/plugin_installer.cc b/chrome/browser/plugin_installer.cc index 8ba5853..9e83746 100644 --- a/chrome/browser/plugin_installer.cc +++ b/chrome/browser/plugin_installer.cc @@ -86,10 +86,9 @@ void PluginInstaller::AddVersion(const Version& version, PluginInstaller::SecurityStatus PluginInstaller::GetSecurityStatus( const webkit::WebPluginInfo& plugin) const { - // If there are no versions defined, the plug-in is alway considered - // up-to-date. + // If there are no versions defined, the plug-in should require authorization. if (versions_.empty()) - return SECURITY_STATUS_UP_TO_DATE; + return SECURITY_STATUS_REQUIRES_AUTHORIZATION; scoped_ptr<Version> version( webkit::npapi::PluginGroup::CreateVersionFromString(plugin.version)); |