diff options
Diffstat (limited to 'content/plugin/plugin_thread.cc')
-rw-r--r-- | content/plugin/plugin_thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/plugin/plugin_thread.cc b/content/plugin/plugin_thread.cc index 623bd88..0be9a91 100644 --- a/content/plugin/plugin_thread.cc +++ b/content/plugin/plugin_thread.cc @@ -118,7 +118,7 @@ PluginThread::PluginThread() scoped_refptr<webkit::npapi::PluginLib> plugin( webkit::npapi::PluginLib::CreatePluginLib(plugin_path)); - if (plugin) { + if (plugin.get()) { plugin->NP_Initialize(); // For OOP plugins the plugin dll will be unloaded during process shutdown // time. @@ -174,7 +174,7 @@ void PluginThread::OnCreateChannel(int renderer_id, scoped_refptr<PluginChannel> channel(PluginChannel::GetPluginChannel( renderer_id, ChildProcess::current()->io_message_loop_proxy())); IPC::ChannelHandle channel_handle; - if (channel) { + if (channel.get()) { channel_handle.name = channel->channel_handle().name; #if defined(OS_POSIX) // On POSIX, pass the renderer-side FD. |