Commit 0c12a163 authored by Trent Begin's avatar Trent Begin Committed by Commit Bot

network_health: add guid field to network mojo struct

This optional GUID is populated with the underlying
NetworkStateProperties GUID field. If the Device does not have an
associated network, the field will be empty.

Bug: chromium:1085092
Change-Id: I5531022b887a9136a80c2f37d9398b3df663d3b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2247146
Commit-Queue: Trent Begin <tbegin@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779366}
parent faa21f19
...@@ -68,6 +68,7 @@ mojom::NetworkPtr CreateNetwork( ...@@ -68,6 +68,7 @@ mojom::NetworkPtr CreateNetwork(
if (net_prop) { if (net_prop) {
net->state = ConnectionStateToNetworkState(net_prop->connection_state); net->state = ConnectionStateToNetworkState(net_prop->connection_state);
net->name = net_prop->name; net->name = net_prop->name;
net->guid = net_prop->guid;
} else { } else {
net->state = DeviceStateToNetworkState(device_prop->device_state); net->state = DeviceStateToNetworkState(device_prop->device_state);
} }
......
...@@ -34,9 +34,10 @@ enum NetworkState { ...@@ -34,9 +34,10 @@ enum NetworkState {
// Contains information for a single network connection and underlying // Contains information for a single network connection and underlying
// network technology e.g WiFi. // network technology e.g WiFi.
struct Network { struct Network {
chromeos.network_config.mojom.NetworkType type; chromeos.network_config.mojom.NetworkType type;
NetworkState state; NetworkState state;
// The unique identifier for the network when a network service exists.
string? guid;
// The user facing name of the network if available. // The user facing name of the network if available.
string? name; string? name;
// Optional string for the network's mac_address. // Optional string for the network's mac_address.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment