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

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: address comments 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..efa5755042cdd213a0387c2717094fea683f086f 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.cpp
@@ -373,4 +373,12 @@ String BluetoothUUID::canonicalUUID(unsigned alias) {
return builder.toString();
}
+// static
+bluetooth::mojom::blink::UUIDPtr BluetoothUUID::createMojoUuid(
+ const String& uuid) {
+ auto result = bluetooth::mojom::blink::UUID::New();
+ result->uuid = uuid;
+ return result;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698