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

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

Issue 1415533006: bluetooth: Implement requestDevice by name or name prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-properties
Patch Set: Merge with ToT and fix histograms conflict Created 5 years, 1 month 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: content/renderer/bluetooth/bluetooth_dispatcher.cc
diff --git a/content/renderer/bluetooth/bluetooth_dispatcher.cc b/content/renderer/bluetooth/bluetooth_dispatcher.cc
index 18284d89ce08c006c96388178ca08ae1ccb9b9a2..a5097d8c8f97b5ba0e0ae807eedd83548458bcf9 100644
--- a/content/renderer/bluetooth/bluetooth_dispatcher.cc
+++ b/content/renderer/bluetooth/bluetooth_dispatcher.cc
@@ -199,6 +199,8 @@ void BluetoothDispatcher::requestDevice(
for (const WebString& service : web_filter.services) {
filter.services.push_back(device::BluetoothUUID(service.utf8()));
}
+ filter.name = web_filter.name.utf8();
+ filter.namePrefix = web_filter.namePrefix.utf8();
}
std::vector<device::BluetoothUUID> optional_services;
optional_services.reserve(options.optionalServices.size());

Powered by Google App Engine
This is Rietveld 408576698