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

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: Tests Created 5 years, 2 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: content/renderer/bluetooth/bluetooth_dispatcher.cc
diff --git a/content/renderer/bluetooth/bluetooth_dispatcher.cc b/content/renderer/bluetooth/bluetooth_dispatcher.cc
index 7a1c7d5ad4e82e56c5c79b2fb4caef3e56d03ccb..41a36ed44cf822db90cd5235fe202c8d6fa37595 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