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

Unified Diff: content/browser/plugin_service_impl.cc

Issue 16369004: Adding --disable-plugins-discovery command line switch to not load third-party plugins from common … (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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.cc
===================================================================
--- content/browser/plugin_service_impl.cc (revision 204062)
+++ content/browser/plugin_service_impl.cc (working copy)
@@ -196,6 +196,10 @@
path = command_line->GetSwitchValuePath(switches::kExtraPluginDir);
if (!path.empty())
plugin_list_->AddExtraPluginDir(path);
+
+ if (command_line->HasSwitch(switches::kDisablePluginsDiscovery)) {
Bernhard Bauer 2013/06/06 08:28:50 Braces aren't required, and Chromium style is to r
seva 2013/06/06 22:11:25 Done.
+ plugin_list_->DisablePluginsDiscovery();
+ }
}
void PluginServiceImpl::StartWatchingPlugins() {

Powered by Google App Engine
This is Rietveld 408576698