Commit 9f633ea8 authored by rouslan@chromium.org's avatar rouslan@chromium.org

Add checksums to Turkish and Estonian spellcheck dictionaries

This CL bumps es-EE and tr-TR spellcheck dictionary versions to 3-0. The updated
dictionaries contain a checksum, which improves reliability.

BUG=168825


Review URL: https://chromiumcodereview.appspot.com/11826006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175724 0039d316-1c4b-4281-b951-d872f2087c98
parent c7e99bb0
......@@ -84,7 +84,7 @@ deps = {
"/trunk/deps/third_party/hunspell@174476",
"src/third_party/hunspell_dictionaries":
"/trunk/deps/third_party/hunspell_dictionaries@174658",
"/trunk/deps/third_party/hunspell_dictionaries@175606",
"src/third_party/safe_browsing/testing":
(Var("googlecode_url") % "google-safe-browsing") + "/trunk/testing@112",
......
......@@ -98,17 +98,14 @@ FilePath GetVersionedFileName(const std::string& input_language,
// 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.
static LanguageVersion special_version_string[] = {
{"et-EE", "-1-1"}, // No dic/aff files
{"tr-TR", "-1-1"}, // No dic/aff files
};
std::vector<LanguageVersion> special_version_string;
// 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 < arraysize(special_version_string); ++i) {
for (size_t i = 0; i < special_version_string.size(); ++i) {
if (language == special_version_string[i].language) {
versioned_bdict_file_name =
language + special_version_string[i].version + ".bdic";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment