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

Unified Diff: content/public/browser/plugin_service.h

Issue 645203002: Block NPAPI plugins by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reorder initializers for clang Created 6 years, 2 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: content/public/browser/plugin_service.h
diff --git a/content/public/browser/plugin_service.h b/content/public/browser/plugin_service.h
index 696800f3f2867e0e6d8bdb7dc9c1f4bf4ac3b5fe..c62d34663ec7672ef4922ee77a6d467e20527d8a 100644
--- a/content/public/browser/plugin_service.h
+++ b/content/public/browser/plugin_service.h
@@ -143,6 +143,9 @@ class PluginService {
// This can be called from any thread.
virtual bool NPAPIPluginsSupported() = 0;
+ // This is equivalent to specifying kEnableNpapi, but is useful for unittests.
+ virtual void EnableNpapiPluginsForTesting() = 0;
+
// This is equivalent to specifying kDisablePluginsDiscovery, but is useful
// for unittests.
virtual void DisablePluginsDiscoveryForTesting() = 0;

Powered by Google App Engine
This is Rietveld 408576698