| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 const ArrayDataModel = cr.ui.ArrayDataModel; | 7 const ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 | 8 |
| 9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
| 10 // InternetOptions class: | 10 // InternetOptions class: |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 $('inetProviderType').textContent = data.provider_type; | 491 $('inetProviderType').textContent = data.provider_type; |
| 492 $('inetUsername').textContent = data.username; | 492 $('inetUsername').textContent = data.username; |
| 493 } else { | 493 } else { |
| 494 OptionsPage.showTab($('internetNavTab')); | 494 OptionsPage.showTab($('internetNavTab')); |
| 495 detailsPage.ethernet = true; | 495 detailsPage.ethernet = true; |
| 496 detailsPage.wireless = false; | 496 detailsPage.wireless = false; |
| 497 detailsPage.vpn = false; | 497 detailsPage.vpn = false; |
| 498 detailsPage.cellular = false; | 498 detailsPage.cellular = false; |
| 499 detailsPage.gsm = false; | 499 detailsPage.gsm = false; |
| 500 } | 500 } |
| 501 OptionsPage.navigateToPage('detailsInternetPage'); | 501 // Don't show page name in address bar and in history to prevent people |
| 502 // navigate here by hand and solve issue with page session restore. |
| 503 OptionsPage.showPageByName('detailsInternetPage', false); |
| 502 }; | 504 }; |
| 503 | 505 |
| 504 // Export | 506 // Export |
| 505 return { | 507 return { |
| 506 InternetOptions: InternetOptions | 508 InternetOptions: InternetOptions |
| 507 }; | 509 }; |
| 508 }); | 510 }); |
| OLD | NEW |