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

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

Issue 2262002: Add ppapi plugins to about:plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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: webkit/tools/test_shell/test_webview_delegate_win.cc
===================================================================
--- webkit/tools/test_shell/test_webview_delegate_win.cc (revision 48402)
+++ webkit/tools/test_shell/test_webview_delegate_win.cc (working copy)
@@ -134,24 +134,13 @@
// WebPluginPageDelegate ------------------------------------------------------
webkit_glue::WebPluginDelegate* TestWebViewDelegate::CreatePluginDelegate(
- const GURL& url,
- const std::string& mime_type,
- std::string* actual_mime_type) {
+ const FilePath& path,
+ const std::string& mime_type) {
HWND hwnd = shell_->webViewHost()->view_handle();
if (!hwnd)
return NULL;
- bool allow_wildcard = true;
- WebPluginInfo info;
- if (!NPAPI::PluginList::Singleton()->GetPluginInfo(
- url, mime_type, allow_wildcard, &info, actual_mime_type)) {
- return NULL;
- }
-
- if (actual_mime_type && !actual_mime_type->empty())
- return WebPluginDelegateImpl::Create(info.path, *actual_mime_type, hwnd);
- else
- return WebPluginDelegateImpl::Create(info.path, mime_type, hwnd);
+ return WebPluginDelegateImpl::Create(path, mime_type, hwnd);
}
void TestWebViewDelegate::CreatedPluginWindow(
« chrome/browser/plugin_service.cc ('K') | « webkit/tools/test_shell/test_webview_delegate_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698