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

Unified Diff: chrome/browser/plugin_data_remover.cc

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit tests. Created 9 years, 11 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_data_remover.cc
diff --git a/chrome/browser/plugin_data_remover.cc b/chrome/browser/plugin_data_remover.cc
index 4e6ac7f3c71bf5ca4a9ba8d6be6bad0c2e75bd59..7e4092ba9fe7231cff9a1473e4d201cce7f3385d 100644
--- a/chrome/browser/plugin_data_remover.cc
+++ b/chrome/browser/plugin_data_remover.cc
@@ -158,7 +158,7 @@ bool PluginDataRemover::IsSupported() {
webkit::npapi::PluginGroup::CreateVersionFromString(plugin.version));
scoped_ptr<Version> min_version(
Version::GetVersionFromString(kMinFlashVersion));
- return plugin.enabled &&
+ return webkit::npapi::IsPluginEnabled(plugin) &&
version.get() &&
min_version->CompareTo(*version) == -1;
}

Powered by Google App Engine
This is Rietveld 408576698