Index: device/bluetooth/bluetooth_adapter.cc |
diff --git a/device/bluetooth/bluetooth_adapter.cc b/device/bluetooth/bluetooth_adapter.cc |
index ce63bddbc0550118f0f0ca95ffa6917ff804f0f2..286815970dc7ec753539de13b45a8e3472a33369 100644 |
--- a/device/bluetooth/bluetooth_adapter.cc |
+++ b/device/bluetooth/bluetooth_adapter.cc |
@@ -113,7 +113,7 @@ void BluetoothAdapter::OnStartDiscoverySession( |
const DiscoverySessionCallback& callback) { |
VLOG(1) << "Discovery session started!"; |
scoped_ptr<BluetoothDiscoverySession> discovery_session( |
- new BluetoothDiscoverySession(this)); |
+ new BluetoothDiscoverySession(scoped_refptr<BluetoothAdapter>(this))); |
discovery_sessions_.insert(discovery_session.get()); |
callback.Run(discovery_session.Pass()); |
} |