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

Unified Diff: ui/webui/resources/cr_elements/network/cr_network_list.js

Issue 2663293002: MD WebUI: Networking polish in OOBE and Settings (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/network/cr_network_list.js
diff --git a/ui/webui/resources/cr_elements/network/cr_network_list.js b/ui/webui/resources/cr_elements/network/cr_network_list.js
index 8dcce41d968d54ac4ff7aa3f07f8fba60e681ee4..82b5fc70658c3bfd4b8553983412ad5cf1e593cf 100644
--- a/ui/webui/resources/cr_elements/network/cr_network_list.js
+++ b/ui/webui/resources/cr_elements/network/cr_network_list.js
@@ -70,12 +70,7 @@ Polymer({
/** @private */
updateListItems_: function() {
this.saveScroll(this.$.networkList);
-
- var customItems = this.customItems.slice();
- if (customItems.length > 0)
- customItems[0].isFirstCustomItem = true;
- this.listItems_ = this.networks.concat(customItems);
-
+ this.listItems_ = this.networks.concat(this.customItems);
this.restoreScroll(this.$.networkList);
this.updateScrollableContents();
},

Powered by Google App Engine
This is Rietveld 408576698