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

Unified Diff: chrome/browser/plugin_service.cc

Issue 2858035: Modify NPAPI::PluginList::GetPluginInfo() to return true also for disabled plugins. (Closed)
Patch Set: Created 10 years, 6 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
Index: chrome/browser/plugin_service.cc
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc
index 466aa8f9b29f7194870a928a1c824e1f1707ab5c..83e86f18917258a727af4b3bba3062e65bb3e61a 100644
--- a/chrome/browser/plugin_service.cc
+++ b/chrome/browser/plugin_service.cc
@@ -248,8 +248,8 @@ FilePath PluginService::GetPluginPath(const GURL& url,
bool allow_wildcard = true;
WebPluginInfo info;
if (NPAPI::PluginList::Singleton()->GetPluginInfo(
- url, mime_type, allow_wildcard, &info, actual_mime_type) &&
- PluginAllowedForURL(info.path, policy_url)) {
+ url, mime_type, allow_wildcard, &info, actual_mime_type) &&
+ info.enabled && PluginAllowedForURL(info.path, policy_url)) {
return info.path;
}
« no previous file with comments | « no previous file | chrome/browser/renderer_host/buffered_resource_handler.cc » ('j') | webkit/glue/plugins/plugin_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698