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

Unified Diff: ipc/ipc_channel_proxy.cc

Issue 4291001: Convert implicit scoped_refptr constructor calls to explicit ones, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build
Patch Set: comments Created 10 years, 1 month 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/test/automation/dom_element_proxy.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_proxy.cc
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
index dcc66aad88751005af28256a5cd93947e6f420e5..5b9083badfde6fdbf981c9f6cbe16c2d88ed10c9 100644
--- a/ipc/ipc_channel_proxy.cc
+++ b/ipc/ipc_channel_proxy.cc
@@ -70,7 +70,7 @@ ChannelProxy::Context::Context(Channel::Listener* listener,
peer_pid_(0),
channel_connected_called_(false) {
if (filter)
- filters_.push_back(filter);
+ filters_.push_back(make_scoped_refptr(filter));
}
void ChannelProxy::Context::CreateChannel(const std::string& id,
@@ -190,7 +190,7 @@ void ChannelProxy::Context::OnSendMessage(Message* message) {
// Called on the IPC::Channel thread
void ChannelProxy::Context::OnAddFilter(MessageFilter* filter) {
- filters_.push_back(filter);
+ filters_.push_back(make_scoped_refptr(filter));
// If the channel has already been created, then we need to send this message
// so that the filter gets access to the Channel.
« no previous file with comments | « chrome/test/automation/dom_element_proxy.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698