| Index: webkit/support/webkit_support.cc
|
| diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
|
| index 059586c51fe1ad785a88316edafb8ac7fafe5fdc..7be38f7baf99714a6d3ffca7674e9fe103ce91e6 100644
|
| --- a/webkit/support/webkit_support.cc
|
| +++ b/webkit/support/webkit_support.cc
|
| @@ -210,6 +210,14 @@ class TestEnvironment {
|
| }
|
| #endif
|
|
|
| + scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy() {
|
| + if (!media_thread_) {
|
| + media_thread_.reset(new base::Thread("Media"));
|
| + CHECK(media_thread_->Start());
|
| + }
|
| + return media_thread_->message_loop_proxy();
|
| + }
|
| +
|
| private:
|
| // Data member at_exit_manager_ will take the ownership of the input
|
| // AtExitManager and manage its lifecycle.
|
| @@ -218,6 +226,8 @@ class TestEnvironment {
|
| scoped_ptr<TestWebKitPlatformSupport> webkit_platform_support_;
|
| scoped_ptr<TestWebIDBFactory> idb_factory_;
|
|
|
| + scoped_ptr<base::Thread> media_thread_;
|
| +
|
| #if defined(OS_ANDROID)
|
| base::FilePath mock_current_directory_;
|
| #endif
|
| @@ -409,6 +419,7 @@ WebKit::WebMediaPlayer* CreateMediaPlayer(
|
| return NULL;
|
| #else
|
| webkit_media::WebMediaPlayerParams params(
|
| + test_environment->GetMediaThreadMessageLoopProxy(),
|
| NULL, NULL, new media::MediaLog());
|
| return new webkit_media::WebMediaPlayerImpl(
|
| frame,
|
|
|