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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: check if binding is bound before close it Created 4 years 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: third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp
index 3e284b403c61958a9ae7271c0743b0d88be16aef..7a5c4cc2e51b55dcd80b387740c036fddb2ed9e6 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp
@@ -373,4 +373,15 @@ String BluetoothUUID::canonicalUUID(unsigned alias) {
return builder.toString();
}
+// static
+bluetooth::mojom::blink::UUIDPtr BluetoothUUID::createMojoUuid(
+ const String& uuid) {
+ bluetooth::mojom::blink::UUIDPtr result;
+ if (!uuid.isEmpty()) {
+ result = bluetooth::mojom::blink::UUID::New();
+ result->uuid = uuid;
+ }
+ return result;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698