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

Side by Side Diff: chrome/browser/resources/options/chromeos_internet_network_element.js

Issue 4162004: Prevented access to WEP passphrase from UI. Fixed forget network button in se... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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.internet', function() { 5 cr.define('options.internet', function() {
6 /** 6 /**
7 * Creates a new network list div. 7 * Creates a new network list div.
8 * @param {Object=} opt_propertyBag Optional properties. 8 * @param {Object=} opt_propertyBag Optional properties.
9 * @constructor 9 * @constructor
10 * @extends {HTMLDivElement} 10 * @extends {HTMLDivElement}
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 this.createButton_('options_button', 'options', 219 this.createButton_('options_button', 'options',
220 function(e) { 220 function(e) {
221 chrome.send('buttonClickCallback', 221 chrome.send('buttonClickCallback',
222 [String(self.data.networkType), 222 [String(self.data.networkType),
223 self.data.servicePath, 223 self.data.servicePath,
224 'options']); 224 'options']);
225 })); 225 }));
226 } 226 }
227 } else { 227 } else {
228 // Put "Forget this network" button. 228 // Put "Forget this network" button.
229 var button = this.createButton_('forget_button', 229 var button = this.createButton_('forget_button', 'forget',
230 function(e) { 230 function(e) {
231 chrome.send('buttonClickCallback', 231 chrome.send('buttonClickCallback',
232 [String(self.data.networkType), 232 [String(self.data.networkType),
233 self.data.servicePath, 233 self.data.servicePath,
234 'forget']); 234 'forget']);
235 }); 235 });
236 if (cr.commandLine.options['--bwsi']) { 236 if (cr.commandLine.options['--bwsi']) {
237 // Disable this for guest session(bwsi). 237 // Disable this for guest session(bwsi).
238 button.disabled = true; 238 button.disabled = true;
239 } 239 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 * Whether the underlying network is an other network for adding networks. 449 * Whether the underlying network is an other network for adding networks.
450 * Only used for display purpose. 450 * Only used for display purpose.
451 * @type {boolean} 451 * @type {boolean}
452 */ 452 */
453 cr.defineProperty(NetworkItem, 'other', cr.PropertyKind.BOOL_ATTR); 453 cr.defineProperty(NetworkItem, 'other', cr.PropertyKind.BOOL_ATTR);
454 454
455 return { 455 return {
456 NetworkElement: NetworkElement 456 NetworkElement: NetworkElement
457 }; 457 };
458 }); 458 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698