| 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) {
|
|
|