Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Unified Diff: content/browser/renderer_host/media/web_contents_video_capture_device.cc

Issue 16431010: Refactor RenderProcessHost to use IPC::Listener instead of RenderWidgetHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing Windows compile error. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698