summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/plugin_channel.cc4
-rw-r--r--chrome/plugin/plugin_thread.cc8
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/plugin/plugin_channel.cc b/chrome/plugin/plugin_channel.cc
index a3216c6..aa3b713 100644
--- a/chrome/plugin/plugin_channel.cc
+++ b/chrome/plugin/plugin_channel.cc
@@ -218,8 +218,8 @@ void PluginChannel::OnControlMessageReceived(const IPC::Message& msg) {
void PluginChannel::OnCreateInstance(const std::string& mime_type,
int* instance_id) {
*instance_id = GenerateRouteID();
- scoped_refptr<WebPluginDelegateStub> stub = new WebPluginDelegateStub(
- mime_type, *instance_id, this);
+ scoped_refptr<WebPluginDelegateStub> stub(new WebPluginDelegateStub(
+ mime_type, *instance_id, this));
AddRoute(*instance_id, stub, NULL);
plugin_stubs_.push_back(stub);
}
diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc
index 954cf9f..0e169e4 100644
--- a/chrome/plugin/plugin_thread.cc
+++ b/chrome/plugin/plugin_thread.cc
@@ -97,8 +97,8 @@ PluginThread::PluginThread()
ChromePluginLib::Create(plugin_path_, GetCPBrowserFuncsForPlugin());
- scoped_refptr<NPAPI::PluginLib> plugin =
- NPAPI::PluginLib::CreatePluginLib(plugin_path_);
+ scoped_refptr<NPAPI::PluginLib> plugin(
+ NPAPI::PluginLib::CreatePluginLib(plugin_path_));
if (plugin.get()) {
plugin->NP_Initialize();
@@ -150,8 +150,8 @@ void PluginThread::OnControlMessageReceived(const IPC::Message& msg) {
void PluginThread::OnCreateChannel(int renderer_id,
bool off_the_record) {
- scoped_refptr<PluginChannel> channel = PluginChannel::GetPluginChannel(
- renderer_id, ChildProcess::current()->io_message_loop());
+ scoped_refptr<PluginChannel> channel(PluginChannel::GetPluginChannel(
+ renderer_id, ChildProcess::current()->io_message_loop()));
IPC::ChannelHandle channel_handle;
if (channel.get()) {
channel_handle.name = channel->channel_name();