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 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 setOrHideParent('esn', getActiveDictionaryValue(data, 'Cellular', 'ESN')); | 1261 setOrHideParent('esn', getActiveDictionaryValue(data, 'Cellular', 'ESN')); |
1262 setOrHideParent( | 1262 setOrHideParent( |
1263 'imei', getActiveDictionaryValue(data, 'Cellular', 'IMEI')); | 1263 'imei', getActiveDictionaryValue(data, 'Cellular', 'IMEI')); |
1264 setOrHideParent( | 1264 setOrHideParent( |
1265 'meid', getActiveDictionaryValue(data, 'Cellular', 'MEID')); | 1265 'meid', getActiveDictionaryValue(data, 'Cellular', 'MEID')); |
1266 setOrHideParent('min', getActiveDictionaryValue(data, 'Cellular', 'MIN')); | 1266 setOrHideParent('min', getActiveDictionaryValue(data, 'Cellular', 'MIN')); |
1267 setOrHideParent( | 1267 setOrHideParent( |
1268 'prl-version', | 1268 'prl-version', |
1269 getActiveDictionaryValue(data, 'Cellular', 'PRLVersion')); | 1269 getActiveDictionaryValue(data, 'Cellular', 'PRLVersion')); |
1270 | 1270 |
1271 var family = getActiveDictionaryValue(data, 'Cellular', 'GSM'); | 1271 var family = getActiveDictionaryValue(data, 'Cellular', 'Family'); |
1272 detailsPage.gsm = family == 'GSM'; | 1272 detailsPage.gsm = family == 'GSM'; |
1273 if (detailsPage.gsm) { | 1273 if (detailsPage.gsm) { |
1274 $('iccid').textContent = | 1274 $('iccid').textContent = |
1275 getActiveDictionaryValue(data, 'Cellular', 'ICCID'); | 1275 getActiveDictionaryValue(data, 'Cellular', 'ICCID'); |
1276 $('imsi').textContent = | 1276 $('imsi').textContent = |
1277 getActiveDictionaryValue(data, 'Cellular', 'IMSI'); | 1277 getActiveDictionaryValue(data, 'Cellular', 'IMSI'); |
1278 | 1278 |
1279 var apnSelector = $('select-apn'); | 1279 var apnSelector = $('select-apn'); |
1280 // Clear APN lists, keep only last element that "other". | 1280 // Clear APN lists, keep only last element that "other". |
1281 while (apnSelector.length != 1) | 1281 while (apnSelector.length != 1) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 | 1380 |
1381 // Don't show page name in address bar and in history to prevent people | 1381 // Don't show page name in address bar and in history to prevent people |
1382 // navigate here by hand and solve issue with page session restore. | 1382 // navigate here by hand and solve issue with page session restore. |
1383 PageManager.showPageByName('detailsInternetPage', false); | 1383 PageManager.showPageByName('detailsInternetPage', false); |
1384 }; | 1384 }; |
1385 | 1385 |
1386 return { | 1386 return { |
1387 DetailsInternetPage: DetailsInternetPage | 1387 DetailsInternetPage: DetailsInternetPage |
1388 }; | 1388 }; |
1389 }); | 1389 }); |
OLD | NEW |