diff options
Diffstat (limited to 'chromium/ui/webui/resources/cr_components/chromeos/network/network_icon.js')
-rw-r--r-- | chromium/ui/webui/resources/cr_components/chromeos/network/network_icon.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/ui/webui/resources/cr_components/chromeos/network/network_icon.js b/chromium/ui/webui/resources/cr_components/chromeos/network/network_icon.js index e2a74ac7726..92b8fd800a6 100644 --- a/chromium/ui/webui/resources/cr_components/chromeos/network/network_icon.js +++ b/chromium/ui/webui/resources/cr_components/chromeos/network/network_icon.js @@ -61,6 +61,14 @@ Polymer({ reflectToAttribute: true, computed: 'computeAriaLabel_(locale, networkState)' }, + + /** @private */ + isUpdatedCellularUiEnabled_: { + type: Boolean, + value() { + return loadTimeData.getBoolean('updatedCellularActivationUi'); + } + }, }, /** @@ -91,6 +99,13 @@ Polymer({ } const prefix = OncMojo.networkTypeIsMobile(type) ? 'cellular-' : 'wifi-'; + + if (this.networkState.type === mojom.NetworkType.kCellular && + this.networkState.typeState.cellular.simLocked && + this.isUpdatedCellularUiEnabled_) { + return prefix + 'locked'; + } + if (!this.isListItem && !this.networkState.guid) { const device = this.deviceState; if (!device || device.deviceState === mojom.DeviceStateType.kEnabled || |