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

Unified Diff: chrome/browser/character_encoding.cc

Issue 28179: Now we sort encoding menu according to current application locale, we also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/character_encoding.h ('k') | chrome/browser/views/options/fonts_page_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/character_encoding.cc
===================================================================
--- chrome/browser/character_encoding.cc (revision 10451)
+++ chrome/browser/character_encoding.cc (working copy)
@@ -295,6 +295,13 @@
}
// Static.
+int CharacterEncoding::GetEncodingCommandIdByIndex(int index) {
+ if (index < canonical_encoding_names_length)
+ return canonical_encoding_names[index].resource_id;
+ return 0;
+}
+
+// Static.
std::wstring CharacterEncoding::GetCanonicalEncodingNameByAliasName(
const std::wstring& alias_name) {
// If the input alias_name is already canonical encoding name, just return it.
« no previous file with comments | « chrome/browser/character_encoding.h ('k') | chrome/browser/views/options/fonts_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698