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

Unified Diff: content/shell/shell_plugin_service_filter.cc

Issue 15820007: [content shell] simplify plugin whitelist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: content/shell/shell_plugin_service_filter.cc
diff --git a/content/shell/shell_plugin_service_filter.cc b/content/shell/shell_plugin_service_filter.cc
index bd26bbc82b525313e580c35e15a840a10f0b3d78..516c5c2119ae59a47eebbd8a6e3dc2a4a962b9db 100644
--- a/content/shell/shell_plugin_service_filter.cc
+++ b/content/shell/shell_plugin_service_filter.cc
@@ -20,11 +20,7 @@ bool ShellPluginServiceFilter::IsPluginAvailable(
const GURL& url,
const GURL& policy_url,
webkit::WebPluginInfo* plugin) {
- if (plugin->name == ASCIIToUTF16("WebKit Test PlugIn") ||
- plugin->name == ASCIIToUTF16("NPAPI Test Plugin")) {
- return true;
- }
- return false;
+ return plugin->name == ASCIIToUTF16("WebKit Test PlugIn");
Bernhard Bauer 2013/05/28 09:52:26 I'm not a fan of making decisions based on plug-in
}
bool ShellPluginServiceFilter::CanLoadPlugin(int render_process_id,
« 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