Index: content/browser/renderer_host/media/web_contents_video_capture_device.cc |
diff --git a/content/browser/renderer_host/media/web_contents_video_capture_device.cc b/content/browser/renderer_host/media/web_contents_video_capture_device.cc |
index f3e6e2452b3e831dab4e47115c3361f4f4fab3f3..42868c0a85fa83fd1f4203bacbf6c4075bc5c273 100644 |
--- a/content/browser/renderer_host/media/web_contents_video_capture_device.cc |
+++ b/content/browser/renderer_host/media/web_contents_video_capture_device.cc |
@@ -873,8 +873,8 @@ RenderWidgetHost* CaptureMachine::GetTarget() { |
RenderWidgetHost* rwh = NULL; |
if (fullscreen_widget_id_ != MSG_ROUTING_NONE) { |
RenderProcessHost* process = web_contents()->GetRenderProcessHost(); |
- rwh = process ? process->GetRenderWidgetHostByID(fullscreen_widget_id_) |
- : NULL; |
+ if (process) |
+ rwh = RenderWidgetHost::FromID(process->GetID(), fullscreen_widget_id_); |
} else { |
rwh = web_contents()->GetRenderViewHost(); |
} |