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

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

Issue 2253053003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | content/renderer/gpu/frame_swap_message_queue.cc » ('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 549d5cf18abbfaf059fa16b62b866e9f59c0b108..231cffce81debba9bc5009d30613ceeef3263957 100644
--- a/content/renderer/bluetooth/web_bluetooth_impl.cc
+++ b/content/renderer/bluetooth/web_bluetooth_impl.cc
@@ -189,11 +189,11 @@ void WebBluetoothImpl::OnRequestDeviceComplete(
for (size_t i = 0; i < device->uuids.size(); ++i)
uuids[i] = blink::WebString::fromUTF8(device->uuids[i]);
- callbacks->onSuccess(base::WrapUnique(new blink::WebBluetoothDeviceInit(
+ callbacks->onSuccess(base::MakeUnique<blink::WebBluetoothDeviceInit>(
blink::WebString::fromUTF8(device->id.str()),
device->name.is_null() ? blink::WebString()
: blink::WebString::fromUTF8(device->name),
- uuids)));
+ uuids));
} else {
callbacks->onError(ToInt32(error));
}
« no previous file with comments | « no previous file | content/renderer/gpu/frame_swap_message_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698