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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_private_api.cc

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: extensions/browser/api/bluetooth/bluetooth_private_api.cc
diff --git a/extensions/browser/api/bluetooth/bluetooth_private_api.cc b/extensions/browser/api/bluetooth/bluetooth_private_api.cc
index 79deb70543dff85869c8c92c5c673c9b89c6a2b8..f4f176ab43b56500175babe9f88f062b3cd3a519 100644
--- a/extensions/browser/api/bluetooth/bluetooth_private_api.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_private_api.cc
@@ -142,7 +142,7 @@ BluetoothPrivateSetAdapterStateFunction::
bool BluetoothPrivateSetAdapterStateFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<bt_private::SetAdapterState::Params> params(
+ std::unique_ptr<bt_private::SetAdapterState::Params> params(
bt_private::SetAdapterState::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -250,7 +250,7 @@ BluetoothPrivateSetPairingResponseFunction::
bool BluetoothPrivateSetPairingResponseFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<bt_private::SetPairingResponse::Params> params(
+ std::unique_ptr<bt_private::SetPairingResponse::Params> params(
bt_private::SetPairingResponse::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
const bt_private::SetPairingResponseOptions& options = params->options;
@@ -311,7 +311,7 @@ BluetoothPrivateDisconnectAllFunction::
bool BluetoothPrivateDisconnectAllFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<bt_private::DisconnectAll::Params> params(
+ std::unique_ptr<bt_private::DisconnectAll::Params> params(
bt_private::DisconnectAll::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -364,7 +364,7 @@ BluetoothPrivateForgetDeviceFunction::~BluetoothPrivateForgetDeviceFunction() {}
bool BluetoothPrivateForgetDeviceFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<bt_private::ForgetDevice::Params> params(
+ std::unique_ptr<bt_private::ForgetDevice::Params> params(
bt_private::ForgetDevice::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -399,11 +399,11 @@ void BluetoothPrivateForgetDeviceFunction::OnErrorCallback(
bool BluetoothPrivateSetDiscoveryFilterFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<SetDiscoveryFilter::Params> params(
+ std::unique_ptr<SetDiscoveryFilter::Params> params(
SetDiscoveryFilter::Params::Create(*args_));
auto& df_param = params->discovery_filter;
- scoped_ptr<device::BluetoothDiscoveryFilter> discovery_filter;
+ std::unique_ptr<device::BluetoothDiscoveryFilter> discovery_filter;
// If all filter fields are empty, we are clearing filter. If any field is
// set, then create proper filter.
@@ -475,7 +475,7 @@ BluetoothPrivateConnectFunction::~BluetoothPrivateConnectFunction() {}
bool BluetoothPrivateConnectFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<bt_private::Connect::Params> params(
+ std::unique_ptr<bt_private::Connect::Params> params(
bt_private::Connect::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -577,7 +577,7 @@ BluetoothPrivatePairFunction::~BluetoothPrivatePairFunction() {}
bool BluetoothPrivatePairFunction::DoWork(
scoped_refptr<device::BluetoothAdapter> adapter) {
- scoped_ptr<bt_private::Pair::Params> params(
+ std::unique_ptr<bt_private::Pair::Params> params(
bt_private::Pair::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());

Powered by Google App Engine
This is Rietveld 408576698