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

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

Issue 2224613003: Switch MD Settings to paper-dropdown-menu-light (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RollPaperDropdown
Patch Set: rebase Created 4 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 Polymer element for displaying and modifying a list of cellular 6 * @fileoverview Polymer element for displaying and modifying a list of cellular
7 * access points. 7 * access points.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'network-apnlist', 10 is: 'network-apnlist',
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Save the 'other' properties. 133 // Save the 'other' properties.
134 this.otherApn = otherApn; 134 this.otherApn = otherApn;
135 135
136 // Append 'other' to the end of the list of APNs. 136 // Append 'other' to the end of the list of APNs.
137 result.push(otherApn); 137 result.push(otherApn);
138 138
139 this.apnSelectList = result; 139 this.apnSelectList = result;
140 this.selectedApn = 140 this.selectedApn =
141 (activeApn && activeApn.AccessPointName) || otherApn.AccessPointName; 141 (activeApn && activeApn.AccessPointName) || otherApn.AccessPointName;
142 // We need to flush the DOM here, otherwise the paper-dropdown-menu will 142 // We need to flush the DOM here, otherwise the paper-dropdown-menu-light
143 // not update to correctly display the selected AccessPointName. 143 // will not update to correctly display the selected AccessPointName.
144 Polymer.dom.flush(); 144 Polymer.dom.flush();
145 }, 145 },
146 146
147 /** 147 /**
148 * @param {!CrOnc.APNProperties|undefined=} apnProperties 148 * @param {!CrOnc.APNProperties|undefined=} apnProperties
149 * @return {!CrOnc.APNProperties} A new APN object with properties from 149 * @return {!CrOnc.APNProperties} A new APN object with properties from
150 * |apnProperties| if provided. 150 * |apnProperties| if provided.
151 * @private 151 * @private
152 */ 152 */
153 createApnObject_: function(apnProperties) { 153 createApnObject_: function(apnProperties) {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 * @private 259 * @private
260 */ 260 */
261 findApnInList: function(apnList, accessPointName) { 261 findApnInList: function(apnList, accessPointName) {
262 for (let a of apnList) { 262 for (let a of apnList) {
263 if (a.AccessPointName == accessPointName) 263 if (a.AccessPointName == accessPointName)
264 return a; 264 return a;
265 } 265 }
266 return undefined; 266 return undefined;
267 } 267 }
268 }); 268 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698