Add backward compatibility in proxied_devices. (#122040)
Add backward compatibility in proxied_devices.
This commit is contained in:
parent
9f69a3679b
commit
3e96dfc03e
@ -248,7 +248,8 @@ class ProxiedDevice extends Device {
|
|||||||
'userIdentifier': userIdentifier,
|
'userIdentifier': userIdentifier,
|
||||||
}));
|
}));
|
||||||
final bool started = _cast<bool>(result['started']);
|
final bool started = _cast<bool>(result['started']);
|
||||||
final String? vmServiceUriStr = _cast<String?>(result['vmServiceUri']);
|
// TODO(bkonyi): remove once clients have migrated to relying on vmServiceUri.
|
||||||
|
final String? vmServiceUriStr = _cast<String?>(result['vmServiceUri']) ?? _cast<String?>(result['observatoryUri']);
|
||||||
final Uri? vmServiceUri = vmServiceUriStr == null ? null : Uri.parse(vmServiceUriStr);
|
final Uri? vmServiceUri = vmServiceUriStr == null ? null : Uri.parse(vmServiceUriStr);
|
||||||
if (started) {
|
if (started) {
|
||||||
if (vmServiceUri != null) {
|
if (vmServiceUri != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user