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

Unified Diff: chrome/browser/language_combobox_model.h

Issue 5990008: Remove wstring from l10n_util. Part 1.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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: chrome/browser/language_combobox_model.h
===================================================================
--- chrome/browser/language_combobox_model.h (revision 70069)
+++ chrome/browser/language_combobox_model.h (working copy)
@@ -24,13 +24,13 @@
public:
struct LocaleData {
LocaleData() { }
- LocaleData(const std::wstring& name, const std::string& code)
+ LocaleData(const string16& name, const std::string& code)
: native_name(name), locale_code(code) { }
- std::wstring native_name;
+ string16 native_name;
std::string locale_code; // E.g., en-us.
};
- typedef std::map<std::wstring, LocaleData> LocaleDataMap;
+ typedef std::map<string16, LocaleData> LocaleDataMap;
LanguageList();
@@ -44,7 +44,7 @@
int get_languages_count() const;
- std::wstring GetLanguageNameAt(int index) const;
+ string16 GetLanguageNameAt(int index) const;
// Return the locale for the given index. E.g., may return pt-BR.
std::string GetLocaleFromIndex(int index) const;
@@ -55,7 +55,7 @@
private:
// The names of all the locales in the current application locale.
- std::vector<std::wstring> locale_names_;
+ std::vector<string16> locale_names_;
// A map of some extra data (LocaleData) keyed off the name of the locale.
LocaleDataMap native_names_;

Powered by Google App Engine
This is Rietveld 408576698