| Index: webkit/plugins/npapi/plugin_list_win.cc
|
| ===================================================================
|
| --- webkit/plugins/npapi/plugin_list_win.cc (revision 205261)
|
| +++ webkit/plugins/npapi/plugin_list_win.cc (working copy)
|
| @@ -305,7 +305,11 @@
|
| return true;
|
| }
|
|
|
| -void PluginList::GetPluginDirectories(std::vector<base::FilePath>* plugin_dirs) {
|
| +void PluginList::GetPluginDirectories(
|
| + std::vector<base::FilePath>* plugin_dirs) {
|
| + if (PluginList::plugins_discovery_disabled_)
|
| + return;
|
| +
|
| // We use a set for uniqueness, which we require, over order, which we do not.
|
| std::set<base::FilePath> dirs;
|
|
|
| @@ -356,7 +360,11 @@
|
| FindClose(find_handle);
|
| }
|
|
|
| -void PluginList::GetPluginPathsFromRegistry(std::vector<base::FilePath>* plugins) {
|
| +void PluginList::GetPluginPathsFromRegistry(
|
| + std::vector<base::FilePath>* plugins) {
|
| + if (PluginList::plugins_discovery_disabled_)
|
| + return;
|
| +
|
| std::set<base::FilePath> plugin_dirs;
|
|
|
| GetPluginsInRegistryDirectory(
|
|
|