Fix plugin enabled check in ShouldDownload (issue #227).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@225 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-05-09 15:12:13 +00:00
parent e0210a78b4
commit bc438a5022
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ bool ShouldDownload(const std::string& content_disposition,
webkit::npapi::WebPluginInfo info;
bool allow_wildcard = false;
return !webkit::npapi::PluginList::Singleton()->GetPluginInfo(
GURL(), type, allow_wildcard, &info, NULL) || !info.enabled;
GURL(), type, allow_wildcard, &info, NULL) ||
!webkit::npapi::IsPluginEnabled(info);
}
} // namespace webkit_glue