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

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_known_networks_page.js

Issue 1341463002: Add on_startup_page/compiled_resources.gyp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'cr-settings-internet-known-networks' is the settings subpage listing the 7 * 'cr-settings-internet-known-networks' is the settings subpage listing the
8 * known networks for a type (currently always WiFi). 8 * known networks for a type (currently always WiFi).
9 * 9 *
10 * @group Chrome Settings Elements 10 * @group Chrome Settings Elements
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 onNetworksChangedEvent_: function(networkIds) { 152 onNetworksChangedEvent_: function(networkIds) {
153 this.refreshNetworks_(); 153 this.refreshNetworks_();
154 }, 154 },
155 155
156 /** 156 /**
157 * Requests the list of network states from Chrome. Updates networkStates 157 * Requests the list of network states from Chrome. Updates networkStates
158 * once the results are returned from Chrome. 158 * once the results are returned from Chrome.
159 * @private 159 * @private
160 */ 160 */
161 refreshNetworks_: function() { 161 refreshNetworks_: function() {
162 if (!this.networkType)
163 return;
dschuyler 2015/09/14 21:08:28 This seems like something different from the other
dschuyler 2015/09/14 21:10:13 Please ignore this. This file was removed after t
162 var filter = { 164 var filter = {
163 networkType: this.networkType, 165 networkType: this.networkType,
164 visible: false, 166 visible: false,
165 configured: true 167 configured: true
166 }; 168 };
167 chrome.networkingPrivate.getNetworks( 169 chrome.networkingPrivate.getNetworks(
168 filter, 170 filter,
169 function(states) { this.networkStateList = states; }.bind(this)); 171 function(states) { this.networkStateList = states; }.bind(this));
170 }, 172 },
171 173
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 }, 208 },
207 209
208 /** 210 /**
209 * Navigate to the previous page. 211 * Navigate to the previous page.
210 * @private 212 * @private
211 */ 213 */
212 navigateBack_: function() { 214 navigateBack_: function() {
213 MoreRouting.navigateTo('internet'); 215 MoreRouting.navigateTo('internet');
214 } 216 }
215 }); 217 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698