| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // NOTE(stevenjb): This code is in the process of being converted to be | 5 // NOTE(stevenjb): This code is in the process of being converted to be |
| 6 // compatible with the networkingPrivate extension API: | 6 // compatible with the networkingPrivate extension API: |
| 7 // * The network property dictionaries are being converted to use ONC values. | 7 // * The network property dictionaries are being converted to use ONC values. |
| 8 // * chrome.send calls will be replaced with an API object that simulates the | 8 // * chrome.send calls will be replaced with an API object that simulates the |
| 9 // networkingPrivate API. See network_config.js. | 9 // networkingPrivate API. See network_config.js. |
| 10 // See crbug.com/279351 for more info. | 10 // See crbug.com/279351 for more info. |
| (...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 updateHidden('#details-internet-page .cdma-only', false); | 1308 updateHidden('#details-internet-page .cdma-only', false); |
| 1309 | 1309 |
| 1310 // Show IMEI/ESN/MEID/MIN/PRL only if they are available. | 1310 // Show IMEI/ESN/MEID/MIN/PRL only if they are available. |
| 1311 setOrHideParent('esn', getManagedValue(data, 'Cellular.ESN')); | 1311 setOrHideParent('esn', getManagedValue(data, 'Cellular.ESN')); |
| 1312 setOrHideParent('imei', getManagedValue(data, 'Cellular.IMEI')); | 1312 setOrHideParent('imei', getManagedValue(data, 'Cellular.IMEI')); |
| 1313 setOrHideParent('meid', getManagedValue(data, 'Cellular.MEID')); | 1313 setOrHideParent('meid', getManagedValue(data, 'Cellular.MEID')); |
| 1314 setOrHideParent('min', getManagedValue(data, 'Cellular.MIN')); | 1314 setOrHideParent('min', getManagedValue(data, 'Cellular.MIN')); |
| 1315 setOrHideParent('prl-version', | 1315 setOrHideParent('prl-version', |
| 1316 getManagedValue(data, 'Cellular.PRLVersion')); | 1316 getManagedValue(data, 'Cellular.PRLVersion')); |
| 1317 | 1317 |
| 1318 var family = getManagedValue(data, 'Cellular.GSM'); | 1318 var family = getManagedValue(data, 'Cellular.Family'); |
| 1319 detailsPage.gsm = family == 'GSM'; | 1319 detailsPage.gsm = family == 'GSM'; |
| 1320 if (detailsPage.gsm) { | 1320 if (detailsPage.gsm) { |
| 1321 $('iccid').textContent = getManagedValue(data, 'Cellular.ICCID'); | 1321 $('iccid').textContent = getManagedValue(data, 'Cellular.ICCID'); |
| 1322 $('imsi').textContent = getManagedValue(data, 'Cellular.IMSI'); | 1322 $('imsi').textContent = getManagedValue(data, 'Cellular.IMSI'); |
| 1323 | 1323 |
| 1324 var apnSelector = $('select-apn'); | 1324 var apnSelector = $('select-apn'); |
| 1325 // Clear APN lists, keep only last element that "other". | 1325 // Clear APN lists, keep only last element that "other". |
| 1326 while (apnSelector.length != 1) | 1326 while (apnSelector.length != 1) |
| 1327 apnSelector.remove(0); | 1327 apnSelector.remove(0); |
| 1328 var otherOption = apnSelector[0]; | 1328 var otherOption = apnSelector[0]; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 | 1437 |
| 1438 // Don't show page name in address bar and in history to prevent people | 1438 // Don't show page name in address bar and in history to prevent people |
| 1439 // navigate here by hand and solve issue with page session restore. | 1439 // navigate here by hand and solve issue with page session restore. |
| 1440 PageManager.showPageByName('detailsInternetPage', false); | 1440 PageManager.showPageByName('detailsInternetPage', false); |
| 1441 }; | 1441 }; |
| 1442 | 1442 |
| 1443 return { | 1443 return { |
| 1444 DetailsInternetPage: DetailsInternetPage | 1444 DetailsInternetPage: DetailsInternetPage |
| 1445 }; | 1445 }; |
| 1446 }); | 1446 }); |
| OLD | NEW |