Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3064)

Unified Diff: chrome/browser/renderer_host/plugin_info_message_filter.cc

Issue 10821042: Infobar unknown plugins by default on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove useless check for OS_CHROMEOS Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/plugin_info_message_filter.cc
diff --git a/chrome/browser/renderer_host/plugin_info_message_filter.cc b/chrome/browser/renderer_host/plugin_info_message_filter.cc
index d980ada6b7b79f8e76cf8d261e45c110a1104792..88e1d17b9dc525a17e617b3df86270db3d7f80e9 100644
--- a/chrome/browser/renderer_host/plugin_info_message_filter.cc
+++ b/chrome/browser/renderer_host/plugin_info_message_filter.cc
@@ -160,8 +160,14 @@ void PluginInfoMessageFilter::Context::DecidePluginStatus(
DCHECK(plugin_setting != CONTENT_SETTING_DEFAULT);
#if defined(ENABLE_PLUGIN_INSTALLATION)
+#if defined(OS_LINUX)
+ // On Linux, unknown plugins require authorization.
+ PluginInstaller::SecurityStatus plugin_status =
+ PluginInstaller::SECURITY_STATUS_REQUIRES_AUTHORIZATION;
+#else
PluginInstaller::SecurityStatus plugin_status =
PluginInstaller::SECURITY_STATUS_UP_TO_DATE;
+#endif
PluginInstaller* installer =
plugin_finder->FindPluginWithIdentifier(group->identifier());
if (installer)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698