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

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

Issue 9195001: Remove --simple-data-source and convert WebMediaPlayerImpl::Initialize() to a void function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: no dcheck Created 8 years, 11 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/support/webkit_support.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_webview_delegate.cc
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 412fbd340d5aa39dc604623dd998d64a7b427d45..13b84849234ee42143346878a299f7e28a7c2641 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -647,7 +647,7 @@ WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
scoped_ptr<media::FilterCollection> collection(
new media::FilterCollection());
- scoped_ptr<webkit_media::WebMediaPlayerImpl> result(
+ webkit_media::WebMediaPlayerImpl* media_player =
new webkit_media::WebMediaPlayerImpl(
client,
base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(),
@@ -655,11 +655,9 @@ WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
NULL,
message_loop_factory.release(),
NULL,
- new media::MediaLog()));
- if (!result->Initialize(frame, false)) {
- return NULL;
- }
- return result.release();
+ new media::MediaLog());
+ media_player->Initialize(frame);
+ return media_player;
}
WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost(
« no previous file with comments | « webkit/support/webkit_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698