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

Unified Diff: chrome/browser/ui/pdf/adobe_reader_info_win.cc

Issue 549313003: Windows: Fix the plugin metadata check to determine if Adobe Reader is secure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/ui/pdf/adobe_reader_info_win.cc
diff --git a/chrome/browser/ui/pdf/adobe_reader_info_win.cc b/chrome/browser/ui/pdf/adobe_reader_info_win.cc
index dee3a1c51dc97e47e403a0d76ca0256fcd5421e6..9552e59f209d5423d20d967c72519a6962c513a7 100644
--- a/chrome/browser/ui/pdf/adobe_reader_info_win.cc
+++ b/chrome/browser/ui/pdf/adobe_reader_info_win.cc
@@ -94,10 +94,13 @@ AdobeReaderPluginInfo GetReaderPlugin(
reader_info.is_enabled = plugin_status != PluginPrefs::POLICY_DISABLED;
}
- PluginMetadata::SecurityStatus security_status =
+ // Adobe Reader will likely always come up as "requires_authorization".
+ // See http://crbug.com/311655.
+ PluginMetadata::SecurityStatus security_stat =
plugin_metadata->GetSecurityStatus(plugins[i]);
reader_info.is_secure =
- security_status == PluginMetadata::SECURITY_STATUS_UP_TO_DATE;
+ security_stat == PluginMetadata::SECURITY_STATUS_UP_TO_DATE ||
Bernhard Bauer 2014/09/09 08:22:37 Change this directly to != SECURITY_STATUS_OUT_OF_
Lei Zhang 2014/09/09 18:26:35 I want to be explicitly about it. In case someone
+ security_stat == PluginMetadata::SECURITY_STATUS_REQUIRES_AUTHORIZATION;
reader_info.plugin_info = plugins[i];
break;
« 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