| Index: content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| index fde3706a5c36481f19fb2cfaf013fae7d9893e7e..f9557b66c7f074807939a3ffe56b8c827902fd6a 100644
|
| --- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| +++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
| @@ -499,17 +499,11 @@ class WebContentsVideoCaptureDeviceTest : public testing::Test {
|
| render_process_host_factory_.get());
|
| web_contents_.reset(
|
| TestWebContents::Create(browser_context_.get(), site_instance.get()));
|
| -
|
| - // This is actually a CaptureTestRenderViewHost.
|
| - RenderWidgetHostImpl* rwh =
|
| - RenderWidgetHostImpl::From(web_contents_->GetRenderViewHost());
|
| -
|
| - std::string device_id =
|
| - WebContentsCaptureUtil::AppendWebContentsDeviceScheme(
|
| - base::StringPrintf("%d:%d", rwh->GetProcess()->GetID(),
|
| - rwh->GetRoutingID()));
|
| -
|
| - device_.reset(WebContentsVideoCaptureDevice::Create(device_id));
|
| + RenderFrameHost* const main_frame = web_contents_->GetMainFrame();
|
| + device_.reset(WebContentsVideoCaptureDevice::Create(
|
| + base::StringPrintf("web-contents-media-stream://%d:%d",
|
| + main_frame->GetProcess()->GetID(),
|
| + main_frame->GetRoutingID())));
|
|
|
| base::RunLoop().RunUntilIdle();
|
| }
|
|
|