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

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

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.h
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.h
index 0044ae54556e913fb22f66b53059a533771787cb..28e3d9d8a6e09b7b677aa156eab50965cddb6c1d 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.h
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.h
@@ -5,8 +5,9 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
#define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "device/bluetooth/bluetooth_gatt_connection.h"
#include "extensions/browser/api/api_resource.h"
#include "extensions/browser/api/api_resource_manager.h"
@@ -19,7 +20,7 @@ class BluetoothLowEnergyConnection : public ApiResource {
explicit BluetoothLowEnergyConnection(
bool persistent,
const std::string& owner_extension_id,
- scoped_ptr<device::BluetoothGattConnection> connection);
+ std::unique_ptr<device::BluetoothGattConnection> connection);
~BluetoothLowEnergyConnection() override;
// Returns a pointer to the underlying connection object.
@@ -43,7 +44,7 @@ class BluetoothLowEnergyConnection : public ApiResource {
// The connection is owned by this instance and will automatically disconnect
// when deleted.
- scoped_ptr<device::BluetoothGattConnection> connection_;
+ std::unique_ptr<device::BluetoothGattConnection> connection_;
DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection);
};

Powered by Google App Engine
This is Rietveld 408576698