Explicitly convert absl::string_view to std::string

PiperOrigin-RevId: 492260785
This commit is contained in:
Anay Wadhera
2022-12-01 12:01:09 -08:00
committed by Copybara-Service
parent 3aa109a29b
commit 40e391b33d
+1 -1
View File
@@ -122,7 +122,7 @@ void ScanManager::NotifyFoundBle(ScanSessionId id, BleAdvertisementData data,
// TODO(b/256913915): Provide more information in PresenceDevice once
// fully implemented
internal::DeviceMetadata metadata;
metadata.set_bluetooth_mac_address(remote_address);
metadata.set_bluetooth_mac_address(std::string(remote_address));
it->second.callback.on_discovered_cb(PresenceDevice(metadata));
}
}