| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #undef LOG | 5 #undef LOG |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 // the copy in webkit.org's repository instead. | 905 // the copy in webkit.org's repository instead. |
| 906 const FilePath::StringType kPluginBlackList[] = { | 906 const FilePath::StringType kPluginBlackList[] = { |
| 907 FILE_PATH_LITERAL("npapi_layout_test_plugin.dll"), | 907 FILE_PATH_LITERAL("npapi_layout_test_plugin.dll"), |
| 908 FILE_PATH_LITERAL("TestNetscapePlugIn.plugin"), | 908 FILE_PATH_LITERAL("TestNetscapePlugIn.plugin"), |
| 909 FILE_PATH_LITERAL("libnpapi_layout_test_plugin.so"), | 909 FILE_PATH_LITERAL("libnpapi_layout_test_plugin.so"), |
| 910 }; | 910 }; |
| 911 for (int i = plugins->size() - 1; i >= 0; --i) { | 911 for (int i = plugins->size() - 1; i >= 0; --i) { |
| 912 WebPluginInfo plugin_info = plugins->at(i); | 912 WebPluginInfo plugin_info = plugins->at(i); |
| 913 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { | 913 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { |
| 914 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { | 914 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { |
| 915 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path); | 915 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path, |
| 916 plugin_info.name); |
| 916 plugins->erase(plugins->begin() + i); | 917 plugins->erase(plugins->begin() + i); |
| 917 } | 918 } |
| 918 } | 919 } |
| 919 } | 920 } |
| 920 } | 921 } |
| 921 | 922 |
| 922 } // namespace webkit_glue | 923 } // namespace webkit_glue |
| OLD | NEW |