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

Unified Diff: chrome/browser/renderer_host/buffered_resource_handler.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/renderer_host/buffered_resource_handler.cc
diff --git a/chrome/browser/renderer_host/buffered_resource_handler.cc b/chrome/browser/renderer_host/buffered_resource_handler.cc
index 3943896c9312c407dc4892f44c5ad39c177ac848..8ffa49a0fe96ea21c398b33ad57db9fdd5e744b1 100644
--- a/chrome/browser/renderer_host/buffered_resource_handler.cc
+++ b/chrome/browser/renderer_host/buffered_resource_handler.cc
@@ -432,7 +432,7 @@ bool BufferedResourceHandler::ShouldDownload(bool* need_plugin_list) {
WebPluginInfo info;
bool allow_wildcard = false;
return !NPAPI::PluginList::Singleton()->GetPluginInfo(
- GURL(), type, allow_wildcard, &info, NULL);
+ GURL(), type, allow_wildcard, &info, NULL) || !info.enabled;
}
void BufferedResourceHandler::UseAlternateResourceHandler(

Powered by Google App Engine
This is Rietveld 408576698