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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc
index 0c220ded18248dd0c28dd5a38f1f8050329dd9a8..0cfbbe0c15775dac31af1043a9ce809be8dc37c7 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc
@@ -22,11 +22,10 @@ ApiResourceManager<BluetoothLowEnergyConnection>::GetFactoryInstance() {
BluetoothLowEnergyConnection::BluetoothLowEnergyConnection(
bool persistent,
const std::string& owner_extension_id,
- scoped_ptr<device::BluetoothGattConnection> connection)
+ std::unique_ptr<device::BluetoothGattConnection> connection)
: ApiResource(owner_extension_id),
persistent_(persistent),
- connection_(connection.release()) {
-}
+ connection_(connection.release()) {}
BluetoothLowEnergyConnection::~BluetoothLowEnergyConnection() {
}

Powered by Google App Engine
This is Rietveld 408576698