Index: webkit/tools/test_shell/test_webview_delegate.cc |
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc |
index 4ad7349d4337f32b79fdbed4226941576186384a..e55fef11419edb018207f176197462e236179789 100644 |
--- a/webkit/tools/test_shell/test_webview_delegate.cc |
+++ b/webkit/tools/test_shell/test_webview_delegate.cc |
@@ -727,36 +727,16 @@ WebMediaPlayer* TestWebViewDelegate::createMediaPlayer( |
WebFrame* frame, WebMediaPlayerClient* client) { |
scoped_ptr<media::MediaFilterCollection> collection( |
new media::MediaFilterCollection()); |
- |
+/* |
appcache::WebApplicationCacheHostImpl* appcache_host = |
appcache::WebApplicationCacheHostImpl::FromFrame(frame); |
- |
- // TODO(hclam): this is the same piece of code as in RenderView, maybe they |
- // should be grouped together. |
- webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory_simple = |
- new webkit_glue::MediaResourceLoaderBridgeFactory( |
- GURL(frame->url()), // referrer |
- "null", // frame origin |
- "null", // main_frame_origin |
- base::GetCurrentProcId(), |
- appcache_host ? appcache_host->host_id() : appcache::kNoHostId, |
- 0); |
- webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory_buffered = |
- new webkit_glue::MediaResourceLoaderBridgeFactory( |
- GURL(frame->url()), // referrer |
- "null", // frame origin |
- "null", // main_frame_origin |
- base::GetCurrentProcId(), |
- appcache_host ? appcache_host->host_id() : appcache::kNoHostId, |
- 0); |
- |
+*/ |
scoped_refptr<webkit_glue::VideoRendererImpl> video_renderer( |
new webkit_glue::VideoRendererImpl(false)); |
collection->AddVideoRenderer(video_renderer); |
return new webkit_glue::WebMediaPlayerImpl( |
- client, collection.release(), bridge_factory_simple, |
- bridge_factory_buffered, false, video_renderer); |
+ client, collection.release(), frame, false, video_renderer); |
} |
WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost( |