Chromium Code Reviews| Index: chrome/browser/resources/settings/internet_page/network_summary.js |
| diff --git a/chrome/browser/resources/settings/internet_page/network_summary.js b/chrome/browser/resources/settings/internet_page/network_summary.js |
| index 15e42bdc2482f2912170cd019a73be18f0696333..57da4109309cdcefcce370b3ab0e76799b08608a 100644 |
| --- a/chrome/browser/resources/settings/internet_page/network_summary.js |
| +++ b/chrome/browser/resources/settings/internet_page/network_summary.js |
| @@ -55,25 +55,33 @@ Polymer({ |
| networkingPrivate: Object, |
| /** |
| - * The device state for each network device type. |
| + * The device state for each network device type. We initialize this to |
| + * include an enabled WiFi type since WiFi is always present and is |
| + * usually disabled. This reduces the amount of visual change on first load. |
|
michaelpg
2017/04/14 20:53:46
"enabled"?
stevenjb
2017/04/14 21:30:53
Done.
|
| * @private {DeviceStateObject} |
| */ |
| deviceStates: { |
| type: Object, |
| value: function() { |
| - return {}; |
| + return { |
| + WiFi: { |
| + Type: chrome.networkingPrivate.NetworkType.WI_FI, |
| + State: chrome.networkingPrivate.DeviceStateType.ENABLED |
| + }, |
| + }; |
| }, |
| notify: true, |
| }, |
| /** |
| - * Array of active network states, one per device type. |
| + * Array of active network states, one per device type. Initialized to |
| + * include a default WiFi state (see deviceStates comment). |
| * @private {!Array<!CrOnc.NetworkStateProperties>} |
| */ |
| activeNetworkStates_: { |
| type: Array, |
| value: function() { |
| - return []; |
| + return [{GUID: '', Type: chrome.networkingPrivate.NetworkType.WI_FI}]; |
| }, |
| }, |
| @@ -84,7 +92,7 @@ Polymer({ |
| networkStateLists_: { |
| type: Object, |
| value: function() { |
| - return {}; |
| + return {WiFi: []}; |
| }, |
| }, |
| }, |