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 |