Chromium Code Reviews| 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 52be61a089101fd2766239501ea1372e061fceb2..3afde9b5511aa09dd5003a919324ba6487d578f1 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,11 @@ 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 = NULL; |
|
jam
2013/06/12 19:59:59
nit: skip the else, it's not needed since rwh is i
nasko
2013/06/12 21:18:59
Done.
|
| + } |
| } else { |
| rwh = web_contents()->GetRenderViewHost(); |
| } |