| 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 6e133b1d6385b0d0ee415fc35d00c92a35ceabe2..7a79a23ed58d49a297814f4567d1385aab8cd001 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
|
| @@ -262,8 +262,8 @@ class CaptureTestRenderViewHost : public TestRenderViewHost {
|
| controller_(controller) {
|
| // Override the default view installed by TestRenderViewHost; we need
|
| // our special subclass which has mocked-out tab capture support.
|
| - RenderWidgetHostView* old_view = GetView();
|
| - SetView(new CaptureTestView(this, controller));
|
| + RenderWidgetHostView* old_view = GetWidget()->GetView();
|
| + GetWidget()->SetView(new CaptureTestView(GetWidget(), controller));
|
| delete old_view;
|
| }
|
|
|
|
|