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

Unified Diff: content/plugin/plugin_thread.cc

Issue 7870008: Wait properly for renderer crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 years, 3 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/plugin/plugin_thread.cc
diff --git a/content/plugin/plugin_thread.cc b/content/plugin/plugin_thread.cc
index 9b27515e99093db80a95e16658088a444640f99d..656652e7b6aa0aa89804deaa3583f46d0a88dcb0 100644
--- a/content/plugin/plugin_thread.cc
+++ b/content/plugin/plugin_thread.cc
@@ -157,7 +157,8 @@ void PluginThread::OnCreateChannel(int renderer_id,
channel_handle.name = channel->channel_handle().name;
#if defined(OS_POSIX)
// On POSIX, pass the renderer-side FD.
- channel_handle.socket = base::FileDescriptor(channel->renderer_fd(), false);
+ channel_handle.socket =
+ base::FileDescriptor(channel->TakeRendererFileDescriptor(), true);
#endif
channel->set_incognito(incognito);
}

Powered by Google App Engine
This is Rietveld 408576698