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

Unified Diff: chrome/browser/language_combobox_model.cc

Issue 3159031: Remove wstrings from bookmarks, part 12. (Closed)
Patch Set: rebased ToT Created 10 years, 4 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 | « chrome/browser/language_combobox_model.h ('k') | chrome/browser/views/autofill_profiles_view_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/language_combobox_model.cc
diff --git a/chrome/browser/language_combobox_model.cc b/chrome/browser/language_combobox_model.cc
index 1745167141db20e27ec30ad5e3437dc7394de3e9..e1b610b562882351ee5597257ec772b053b2b4a7 100644
--- a/chrome/browser/language_combobox_model.cc
+++ b/chrome/browser/language_combobox_model.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -151,6 +151,14 @@ LanguageComboboxModel::LanguageComboboxModel(
profile_(profile) {
}
+int LanguageComboboxModel::GetItemCount() {
+ return get_languages_count();
+}
+
+string16 LanguageComboboxModel::GetItemAt(int index) {
+ return WideToUTF16Hack(GetLanguageNameAt(index));
+}
+
// Returns the index of the language currently specified in the user's
// preference file. Note that it's possible for language A to be picked
// while chrome is currently in language B if the user specified language B
« no previous file with comments | « chrome/browser/language_combobox_model.h ('k') | chrome/browser/views/autofill_profiles_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698