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

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

Issue 10255017: Fixed failure to add language in language settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed error from eearlier edit. Created 8 years, 8 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 | chrome/browser/ui/webui/options2/language_options_handler2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/language_list.js
diff --git a/chrome/browser/resources/options2/language_list.js b/chrome/browser/resources/options2/language_list.js
index 17fc9863cb57454a2b44cc55f75513052b5788da..b74893b1d17afbe9e1ce8a354470e7a0a28a04ca 100644
--- a/chrome/browser/resources/options2/language_list.js
+++ b/chrome/browser/resources/options2/language_list.js
@@ -70,7 +70,8 @@ cr.define('options', function() {
this.languageCodeToLanguageInfo_ = {};
var languageList = templateData.languageList;
for (var i = 0; i < languageList.length; i++) {
- this.languageCodeToLanguageInfo_[languageCode] = languageList[i];
+ var languageInfo = languageList[i];
+ this.languageCodeToLanguageInfo_[languageInfo.code] = languageInfo;
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options2/language_options_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698