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

Unified Diff: chrome/browser/resources/options/language_list.js

Issue 1617243004: Stop checking for null selectionModel field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/language_list.js
diff --git a/chrome/browser/resources/options/language_list.js b/chrome/browser/resources/options/language_list.js
index 1030a0ac70e449e6cd59f36bf21855a1f61d738e..578a1f7f713df8a91220c2cb672a5efa77857299 100644
--- a/chrome/browser/resources/options/language_list.js
+++ b/chrome/browser/resources/options/language_list.js
@@ -400,11 +400,6 @@ cr.define('options', function() {
this.selectionModel.selectedIndex = originalSelectedIndex;
// The lead index should be updated too.
this.selectionModel.leadIndex = originalSelectedIndex;
- } else if (this.dataModel.length > 0) {
- // Otherwise, select the first item if it's not empty.
- // Note that ListSingleSelectionModel won't select an item
- // automatically, hence we manually select the first item here.
Dan Beam 2016/01/25 23:27:16 this is why selectedIndex starts as -1: https://co
- this.selectionModel.selectedIndex = 0;
Kevin Bailey 2016/01/22 15:12:50 While looking around, trying to figure out how sto
please use gerrit instead 2016/01/22 18:31:09 I defer to Dan as the resident JS expert.
Dan Beam 2016/01/25 23:27:16 this is where selectionModel is created (on page l
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698