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

Unified Diff: chrome/plugin/plugin_thread.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/renderer/audio_message_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/plugin_thread.cc
diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc
index 954cf9f42e96620f4ad7360ee79996c531d98322..0e169e41ac8f3063da08ca0993bfa97cd7639f8e 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();
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/renderer/audio_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698