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

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

Issue 8382012: Fix shutdown crash when WebMediaPlayerImpl is destroyed after RenderViewImpl is. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test callers Created 9 years, 2 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 e86b2755c65fbe20dbf59e36df8ae92173a41b90..604489ffa1076ab0d73247ea959abc64367555ad 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -658,12 +658,13 @@ WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
collection->AddVideoRenderer(video_renderer);
scoped_ptr<webkit_glue::WebMediaPlayerImpl> result(
- new webkit_glue::WebMediaPlayerImpl(client,
- NULL,
- collection.release(),
- message_loop_factory.release(),
- NULL,
- new media::MediaLog()));
+ new webkit_glue::WebMediaPlayerImpl(
+ client,
+ base::WeakPtr<webkit_glue::WebMediaPlayerDelegate>(),
+ collection.release(),
+ message_loop_factory.release(),
+ NULL,
+ new media::MediaLog()));
if (!result->Initialize(frame, false, video_renderer)) {
return NULL;
}
« 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