diff options
author | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-02 15:53:44 +0000 |
---|---|---|
committer | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-02 15:53:44 +0000 |
commit | f7eb4703666f6e8776ef084e6b60e19616edf7a4 (patch) | |
tree | 4f89249b66997767ac2aed0d6595a153b32f6ec7 /app/l10n_util_collator.h | |
parent | 931fae8fbb1766629f2d82d772c7f612b440c4b2 (diff) | |
download | chromium_src-f7eb4703666f6e8776ef084e6b60e19616edf7a4.zip chromium_src-f7eb4703666f6e8776ef084e6b60e19616edf7a4.tar.gz chromium_src-f7eb4703666f6e8776ef084e6b60e19616edf7a4.tar.bz2 |
translate infobar: sort languages in menus by application locale
- provide string16 sorting methods (there were only std::wstring sorting methods before)
- problem is fixed on win, mac, linux and chromeos
BUG=39850
TEST=verify per bug report.
Review URL: http://codereview.chromium.org/1542009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util_collator.h')
-rw-r--r-- | app/l10n_util_collator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/l10n_util_collator.h b/app/l10n_util_collator.h index 8140cf0..6964f43 100644 --- a/app/l10n_util_collator.h +++ b/app/l10n_util_collator.h @@ -112,6 +112,13 @@ template <> bool StringComparator<std::wstring>::operator()(const std::wstring& lhs, const std::wstring& rhs); +#if !defined(WCHAR_T_IS_UTF16) +// Specialization of operator() method for string16 version. +template <> +bool StringComparator<string16>::operator()(const string16& lhs, + const string16& rhs); +#endif // !defined(WCHAR_T_IS_UTF16) + // In place sorting of |elements| of a vector according to the string key of // each element in the vector by using collation rules for |locale|. // |begin_index| points to the start position of elements in the vector which |