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

Unified Diff: content/browser/plugin_service_impl.h

Issue 645203002: Block NPAPI plugins by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make npapi plugin load tests more robust. remove ifdefs 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/browser/plugin_service_impl.h
diff --git a/content/browser/plugin_service_impl.h b/content/browser/plugin_service_impl.h
index 0b5cc5fe2779c7cbf23ffde1a3989175b5e1a01b..6ed5302139617d6304f7e418b49ebe874eb193c2 100644
--- a/content/browser/plugin_service_impl.h
+++ b/content/browser/plugin_service_impl.h
@@ -108,6 +108,7 @@ class CONTENT_EXPORT PluginServiceImpl
virtual void GetInternalPlugins(
std::vector<WebPluginInfo>* plugins) override;
virtual bool NPAPIPluginsSupported() override;
+ virtual void EnableNpapiPluginsForTesting() override;
virtual void DisablePluginsDiscoveryForTesting() override;
#if defined(OS_MACOSX)
virtual void AppActivated() override;
@@ -228,6 +229,8 @@ class CONTENT_EXPORT PluginServiceImpl
base::win::RegKey hklm_key_;
#endif
+ bool npapi_plugins_enabled_;
+
#if defined(OS_POSIX) && !defined(OS_OPENBSD) && !defined(OS_ANDROID)
ScopedVector<base::FilePathWatcher> file_watchers_;
#endif

Powered by Google App Engine
This is Rietveld 408576698