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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make windows compiler even happier. Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 // the copy in webkit.org's repository instead. 900 // the copy in webkit.org's repository instead.
901 const FilePath::StringType kPluginBlackList[] = { 901 const FilePath::StringType kPluginBlackList[] = {
902 FILE_PATH_LITERAL("npapi_layout_test_plugin.dll"), 902 FILE_PATH_LITERAL("npapi_layout_test_plugin.dll"),
903 FILE_PATH_LITERAL("TestNetscapePlugIn.plugin"), 903 FILE_PATH_LITERAL("TestNetscapePlugIn.plugin"),
904 FILE_PATH_LITERAL("libnpapi_layout_test_plugin.so"), 904 FILE_PATH_LITERAL("libnpapi_layout_test_plugin.so"),
905 }; 905 };
906 for (int i = plugins->size() - 1; i >= 0; --i) { 906 for (int i = plugins->size() - 1; i >= 0; --i) {
907 WebPluginInfo plugin_info = plugins->at(i); 907 WebPluginInfo plugin_info = plugins->at(i);
908 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { 908 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) {
909 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { 909 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) {
910 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path); 910 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path, false);
911 plugins->erase(plugins->begin() + i); 911 plugins->erase(plugins->begin() + i);
912 } 912 }
913 } 913 }
914 } 914 }
915 } 915 }
916 916
917 } // namespace webkit_glue 917 } // namespace webkit_glue
OLDNEW
« webkit/glue/plugins/webplugininfo.cc ('K') | « webkit/support/webkit_support_glue.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698