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

Unified Diff: content/browser/device_orientation/message_filter.cc

Issue 11189146: Eliminate implicit conversion from scoped_refptr<T> to T* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « base/memory/ref_counted.h ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_orientation/message_filter.cc
diff --git a/content/browser/device_orientation/message_filter.cc b/content/browser/device_orientation/message_filter.cc
index 9418c69dde5724660b2e3d3e45aa255d1d7c6490..81c871bc5cd3107b8c86cb65763cb30745e3ea7a 100644
--- a/content/browser/device_orientation/message_filter.cc
+++ b/content/browser/device_orientation/message_filter.cc
@@ -27,7 +27,7 @@ class MessageFilter::ObserverDelegate
// Create ObserverDelegate that observes provider and forwards updates to
// render_view_id in process_id.
// Will stop observing provider when destructed.
- ObserverDelegate(Provider* provider,
+ ObserverDelegate(const scoped_refptr<Provider>& provider,
int render_view_id,
IPC::Message::Sender* sender);
@@ -45,9 +45,10 @@ class MessageFilter::ObserverDelegate
DISALLOW_COPY_AND_ASSIGN(ObserverDelegate);
};
-MessageFilter::ObserverDelegate::ObserverDelegate(Provider* provider,
- int render_view_id,
- IPC::Message::Sender* sender)
+MessageFilter::ObserverDelegate::ObserverDelegate(
+ const scoped_refptr<Provider>& provider,
+ int render_view_id,
+ IPC::Message::Sender* sender)
: provider_(provider),
render_view_id_(render_view_id),
sender_(sender) {
« no previous file with comments | « base/memory/ref_counted.h ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698