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

Unified Diff: content/renderer/bluetooth/web_bluetooth_impl.cc

Issue 1873783003: Convert //content/renderer 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
« no previous file with comments | « content/renderer/bluetooth/web_bluetooth_impl.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/bluetooth/web_bluetooth_impl.cc
diff --git a/content/renderer/bluetooth/web_bluetooth_impl.cc b/content/renderer/bluetooth/web_bluetooth_impl.cc
index 7665e8079a2c7a22bc79275db8301dc1974eb6ef..01da671f8ffc3c7765991177a1839dc5777b6a90 100644
--- a/content/renderer/bluetooth/web_bluetooth_impl.cc
+++ b/content/renderer/bluetooth/web_bluetooth_impl.cc
@@ -4,6 +4,7 @@
#include "content/renderer/bluetooth/web_bluetooth_impl.h"
+#include "base/memory/ptr_util.h"
#include "content/child/mojo/type_converters.h"
#include "content/child/thread_safe_sender.h"
#include "content/public/common/service_registry.h"
@@ -79,7 +80,7 @@ void WebBluetoothImpl::writeValue(
mojo::Array<uint8_t>::From(value),
base::Bind(&WebBluetoothImpl::OnWriteValueComplete,
base::Unretained(this), value,
- base::Passed(make_scoped_ptr(callbacks))));
+ base::Passed(base::WrapUnique(callbacks))));
}
void WebBluetoothImpl::startNotifications(
@@ -114,7 +115,7 @@ void WebBluetoothImpl::registerCharacteristicObject(
void WebBluetoothImpl::OnWriteValueComplete(
const blink::WebVector<uint8_t>& value,
- scoped_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks,
+ std::unique_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks,
blink::mojom::WebBluetoothError error) {
if (error == blink::mojom::WebBluetoothError::SUCCESS) {
callbacks->onSuccess(value);
« no previous file with comments | « content/renderer/bluetooth/web_bluetooth_impl.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698