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

Unified Diff: components/arc/bluetooth/bluetooth_type_converters.cc

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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: components/arc/bluetooth/bluetooth_type_converters.cc
diff --git a/components/arc/bluetooth/bluetooth_type_converters.cc b/components/arc/bluetooth/bluetooth_type_converters.cc
index c687db1591bbb776bcc4ad9788245a160a2f3a2c..ada02b3f21434664088def53c6bee0172a1a73ba 100644
--- a/components/arc/bluetooth/bluetooth_type_converters.cc
+++ b/components/arc/bluetooth/bluetooth_type_converters.cc
@@ -37,23 +37,24 @@ namespace mojo {
// TODO(smbarber): Add unit tests for Bluetooth type converters.
// static
-arc::BluetoothAddressPtr
-TypeConverter<arc::BluetoothAddressPtr, std::string>::Convert(
+arc::mojom::BluetoothAddressPtr
+TypeConverter<arc::mojom::BluetoothAddressPtr, std::string>::Convert(
const std::string& address) {
std::string stripped = StripNonHex(address);
std::vector<uint8_t> address_bytes;
base::HexStringToBytes(stripped, &address_bytes);
- arc::BluetoothAddressPtr mojo_addr = arc::BluetoothAddress::New();
+ arc::mojom::BluetoothAddressPtr mojo_addr =
+ arc::mojom::BluetoothAddress::New();
mojo_addr->address = mojo::Array<uint8_t>::From(address_bytes);
return mojo_addr;
}
// static
-std::string TypeConverter<std::string, arc::BluetoothAddress>::Convert(
- const arc::BluetoothAddress& address) {
+std::string TypeConverter<std::string, arc::mojom::BluetoothAddress>::Convert(
+ const arc::mojom::BluetoothAddress& address) {
std::ostringstream addr_stream;
addr_stream << std::setfill('0') << std::hex << std::uppercase;
@@ -68,15 +69,15 @@ std::string TypeConverter<std::string, arc::BluetoothAddress>::Convert(
}
// static
-arc::BluetoothUUIDPtr
-TypeConverter<arc::BluetoothUUIDPtr, device::BluetoothUUID>::Convert(
+arc::mojom::BluetoothUUIDPtr
+TypeConverter<arc::mojom::BluetoothUUIDPtr, device::BluetoothUUID>::Convert(
const device::BluetoothUUID& uuid) {
std::string uuid_str = StripNonHex(uuid.canonical_value());
std::vector<uint8_t> address_bytes;
base::HexStringToBytes(uuid_str, &address_bytes);
- arc::BluetoothUUIDPtr uuidp = arc::BluetoothUUID::New();
+ arc::mojom::BluetoothUUIDPtr uuidp = arc::mojom::BluetoothUUID::New();
uuidp->uuid = mojo::Array<uint8_t>::From(address_bytes);
return uuidp;
« no previous file with comments | « components/arc/bluetooth/bluetooth_type_converters.h ('k') | components/arc/clipboard/arc_clipboard_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698