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

Unified Diff: chrome/common/spellcheck_common.cc

Issue 11783054: Revert 175724 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/spellcheck_common.cc
===================================================================
--- chrome/common/spellcheck_common.cc (revision 175740)
+++ chrome/common/spellcheck_common.cc (working copy)
@@ -98,14 +98,17 @@
// dictionaries that you add at the same time. Increment the major version
// number if you're updating either dic or aff files. Increment the minor
// version number if you're updating only dic_delta files.
- std::vector<LanguageVersion> special_version_string;
+ static LanguageVersion special_version_string[] = {
+ {"et-EE", "-1-1"}, // No dic/aff files
+ {"tr-TR", "-1-1"}, // No dic/aff files
+ };
// Generate the bdict file name using default version string or special
// version string, depending on the language.
std::string language = GetSpellCheckLanguageRegion(input_language);
std::string versioned_bdict_file_name(language + kDefaultVersionString +
".bdic");
- for (size_t i = 0; i < special_version_string.size(); ++i) {
+ for (size_t i = 0; i < arraysize(special_version_string); ++i) {
if (language == special_version_string[i].language) {
versioned_bdict_file_name =
language + special_version_string[i].version + ".bdic";
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698