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

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

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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
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 f10ee08e0d8080ad7d894570910731c9e626ee22..2843f7d16e19ca607d84e1786da092f0c9870262 100644
--- a/content/browser/device_orientation/message_filter.cc
+++ b/content/browser/device_orientation/message_filter.cc
@@ -22,11 +22,11 @@ DeviceOrientationMessageFilter::~DeviceOrientationMessageFilter() {
void DeviceOrientationMessageFilter::OnStartUpdating(int render_view_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- if (!provider_)
+ if (!provider_.get())
provider_ = Provider::GetInstance();
- observers_map_[render_view_id] = new ObserverDelegate(device_data_type_,
- provider_, render_view_id, this);
+ observers_map_[render_view_id] = new ObserverDelegate(
+ device_data_type_, provider_.get(), render_view_id, this);
}
void DeviceOrientationMessageFilter::OnStopUpdating(int render_view_id) {

Powered by Google App Engine
This is Rietveld 408576698