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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.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_api_pairing_delegate.cc
diff --git a/extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.cc b/extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.cc
index 22cb6f74ffe4099b0cfebe8be8402d0dc5e0b4c3..4a5210fa818af87d68612d6d0f998096eb9c3008 100644
--- a/extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.cc
@@ -4,9 +4,9 @@
#include "extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.h"
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "content/public/browser/browser_context.h"
#include "device/bluetooth/bluetooth_device.h"
@@ -101,11 +101,11 @@ void BluetoothApiPairingDelegate::AuthorizePairing(
void BluetoothApiPairingDelegate::DispatchPairingEvent(
const bt_private::PairingEvent& pairing_event) {
- scoped_ptr<base::ListValue> args =
+ std::unique_ptr<base::ListValue> args =
bt_private::OnPairing::Create(pairing_event);
- scoped_ptr<Event> event(new Event(events::BLUETOOTH_PRIVATE_ON_PAIRING,
- bt_private::OnPairing::kEventName,
- std::move(args)));
+ std::unique_ptr<Event> event(new Event(events::BLUETOOTH_PRIVATE_ON_PAIRING,
+ bt_private::OnPairing::kEventName,
+ std::move(args)));
EventRouter::Get(browser_context_)->BroadcastEvent(std::move(event));
}
« no previous file with comments | « extensions/browser/api/bluetooth/bluetooth_api.cc ('k') | extensions/browser/api/bluetooth/bluetooth_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698