diff options
Diffstat (limited to 'content/plugin')
-rw-r--r-- | content/plugin/plugin_channel.h | 2 | ||||
-rw-r--r-- | content/plugin/plugin_thread.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/content/plugin/plugin_channel.h b/content/plugin/plugin_channel.h index ec79dd0..27e0e93 100644 --- a/content/plugin/plugin_channel.h +++ b/content/plugin/plugin_channel.h @@ -51,7 +51,7 @@ class PluginChannel : public NPChannelBase { void set_incognito(bool value) { incognito_ = value; } #if defined(OS_POSIX) - int TakeRendererFileDescriptor() { + base::ScopedFD TakeRendererFileDescriptor() { return channel_->TakeClientFileDescriptor(); } #endif diff --git a/content/plugin/plugin_thread.cc b/content/plugin/plugin_thread.cc index f1b8d95..2663b0f 100644 --- a/content/plugin/plugin_thread.cc +++ b/content/plugin/plugin_thread.cc @@ -146,7 +146,7 @@ void PluginThread::OnCreateChannel(int renderer_id, #if defined(OS_POSIX) // On POSIX, pass the renderer-side FD. channel_handle.socket = - base::FileDescriptor(channel->TakeRendererFileDescriptor(), true); + base::FileDescriptor(channel->TakeRendererFileDescriptor()); #endif channel->set_incognito(incognito); } |