diff options
Diffstat (limited to 'content/browser/device_orientation/observer_delegate.cc')
-rw-r--r-- | content/browser/device_orientation/observer_delegate.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/device_orientation/observer_delegate.cc b/content/browser/device_orientation/observer_delegate.cc index fc4273f..1ffe07a 100644 --- a/content/browser/device_orientation/observer_delegate.cc +++ b/content/browser/device_orientation/observer_delegate.cc @@ -29,7 +29,7 @@ ObserverDelegate::~ObserverDelegate() { void ObserverDelegate::OnDeviceDataUpdate( const DeviceData* device_data, DeviceData::Type device_data_type) { scoped_refptr<const DeviceData> new_device_data(device_data); - if (!new_device_data) + if (!new_device_data.get()) new_device_data = EmptyDeviceData(device_data_type); sender_->Send(new_device_data->CreateIPCMessage(render_view_id_)); |