Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: chrome/browser/resources/options/chromeos/internet_detail.js

Issue 890663003: Use chrome.networkingPrivate in chrome://network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + feedback Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // require: onc_data.js 5 // require: onc_data.js
6 6
7 // NOTE(stevenjb): This code is in the process of being converted to be 7 // NOTE(stevenjb): This code is in the process of being converted to be
8 // compatible with the networkingPrivate extension API: 8 // compatible with the networkingPrivate extension API:
9 // * The network property dictionaries are being converted to use ONC values. 9 // * The network property dictionaries are being converted to use ONC values.
10 // * chrome.send calls will be replaced with an API object that simulates the 10 // * chrome.send calls will be replaced with chrome.networkingPrivate calls.
11 // networkingPrivate API. See network_config.js.
12 // See crbug.com/279351 for more info. 11 // See crbug.com/279351 for more info.
13 12
14 cr.define('options.internet', function() { 13 cr.define('options.internet', function() {
15 var OncData = cr.onc.OncData; 14 var OncData = cr.onc.OncData;
16 var Page = cr.ui.pageManager.Page; 15 var Page = cr.ui.pageManager.Page;
17 var PageManager = cr.ui.pageManager.PageManager; 16 var PageManager = cr.ui.pageManager.PageManager;
18 /** @const */ var IPAddressField = options.internet.IPAddressField; 17 /** @const */ var IPAddressField = options.internet.IPAddressField;
19 18
20 /** @const */ var GoogleNameServers = ['8.8.4.4', '8.8.8.8']; 19 /** @const */ var GoogleNameServers = ['8.8.4.4', '8.8.8.8'];
21 /** @const */ var CarrierGenericUMTS = 'Generic UMTS'; 20 /** @const */ var CarrierGenericUMTS = 'Generic UMTS';
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 1702
1704 // Don't show page name in address bar and in history to prevent people 1703 // Don't show page name in address bar and in history to prevent people
1705 // navigate here by hand and solve issue with page session restore. 1704 // navigate here by hand and solve issue with page session restore.
1706 PageManager.showPageByName('detailsInternetPage', false); 1705 PageManager.showPageByName('detailsInternetPage', false);
1707 }; 1706 };
1708 1707
1709 return { 1708 return {
1710 DetailsInternetPage: DetailsInternetPage 1709 DetailsInternetPage: DetailsInternetPage
1711 }; 1710 };
1712 }); 1711 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698