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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 7978009: Split ppapi::PluginList from PepperPluginRegistry so that DRT could load pepper plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_list.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell.cc
===================================================================
--- webkit/tools/test_shell/test_shell.cc (revision 101488)
+++ webkit/tools/test_shell/test_shell.cc (working copy)
@@ -48,6 +48,7 @@
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/webpreferences.h"
#include "webkit/plugins/npapi/plugin_list.h"
+#include "webkit/plugins/ppapi/ppapi_plugin_list.h"
#include "webkit/plugins/webplugininfo.h"
#include "webkit/tools/test_shell/notification_presenter.h"
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
@@ -663,6 +664,17 @@
std::vector<webkit::WebPluginInfo>* plugins) {
if (refresh)
webkit::npapi::PluginList::Singleton()->RefreshPlugins();
+
+ // Pepper plugins.
+ const std::vector<webkit::ppapi::PluginInfo>& ppapi_plugins =
+ webkit::ppapi::PluginList::GetInstance()->plugin_list();
+ for (size_t i = 0; i < ppapi_plugins.size(); ++i) {
+ webkit::WebPluginInfo plugin_info;
+ webkit::ppapi::PepperToWebPluginInfo(ppapi_plugins[i], &plugin_info);
+ webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin(plugin_info);
+ }
+ webkit::ppapi::PluginList::GetInstance()->LoadModules();
+
webkit::npapi::PluginList::Singleton()->GetPlugins(plugins);
// Don't load the forked TestNetscapePlugIn in the chromium code, use
// the copy in webkit.org's repository instead.
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698