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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.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_notify_session.h
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h
index 47e2b862069be3c2a6f4a34c2c55c0223005a03c..b5a4cae5f0e3ee93c91910e40a196844dc87e71e 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h
@@ -5,10 +5,10 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_NOTIFY_SESSION_H_
#define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_NOTIFY_SESSION_H_
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "device/bluetooth/bluetooth_gatt_notify_session.h"
#include "extensions/browser/api/api_resource.h"
#include "extensions/browser/api/api_resource_manager.h"
@@ -21,7 +21,7 @@ class BluetoothLowEnergyNotifySession : public ApiResource {
explicit BluetoothLowEnergyNotifySession(
bool persistent,
const std::string& owner_extension_id,
- scoped_ptr<device::BluetoothGattNotifySession> session);
+ std::unique_ptr<device::BluetoothGattNotifySession> session);
~BluetoothLowEnergyNotifySession() override;
// Returns a pointer to the underlying session object.
@@ -45,7 +45,7 @@ class BluetoothLowEnergyNotifySession : public ApiResource {
// The session is owned by this instance and will automatically stop when
// deleted.
- scoped_ptr<device::BluetoothGattNotifySession> session_;
+ std::unique_ptr<device::BluetoothGattNotifySession> session_;
DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyNotifySession);
};

Powered by Google App Engine
This is Rietveld 408576698