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

Side by Side Diff: chrome/browser/spellchecker.cc

Issue 99241: Upadte version for the Lithuanian spell check dictionary.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/spellchecker.h" 5 #include "chrome/browser/spellchecker.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/histogram.h" 9 #include "base/histogram.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 {"es-ES", "-1-1"}, 351 {"es-ES", "-1-1"},
352 {"nl-NL", "-1-1"}, 352 {"nl-NL", "-1-1"},
353 {"ru-RU", "-1-1"}, 353 {"ru-RU", "-1-1"},
354 {"sv-SE", "-1-1"}, 354 {"sv-SE", "-1-1"},
355 {"he-IL", "-1-1"}, 355 {"he-IL", "-1-1"},
356 {"el-GR", "-1-1"}, 356 {"el-GR", "-1-1"},
357 {"hi-IN", "-1-1"}, 357 {"hi-IN", "-1-1"},
358 {"tr-TR", "-1-1"}, 358 {"tr-TR", "-1-1"},
359 {"et-EE", "-1-1"}, 359 {"et-EE", "-1-1"},
360 {"fr-FR", "-1-3"}, 360 {"fr-FR", "-1-3"},
361 {"lt-LT", "-1-3"},
361 {"pl-PL", "-1-3"} 362 {"pl-PL", "-1-3"}
362 }; 363 };
363 364
364 // Generate the bdict file name using default version string or special 365 // Generate the bdict file name using default version string or special
365 // version string, depending on the language. 366 // version string, depending on the language.
366 std::string language = GetSpellCheckLanguageRegion(input_language); 367 std::string language = GetSpellCheckLanguageRegion(input_language);
367 std::string versioned_bdict_file_name(language + kDefaultVersionString + 368 std::string versioned_bdict_file_name(language + kDefaultVersionString +
368 ".bdic"); 369 ".bdic");
369 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(special_version_string); ++i) { 370 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(special_version_string); ++i) {
370 if (language == special_version_string[i].language) { 371 if (language == special_version_string[i].language) {
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 hunspell_->put_word(word_to_add.c_str()); 628 hunspell_->put_word(word_to_add.c_str());
628 629
629 // Now add the word to the custom dictionary file. 630 // Now add the word to the custom dictionary file.
630 Task* write_word_task = 631 Task* write_word_task =
631 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word); 632 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word);
632 if (file_loop_) 633 if (file_loop_)
633 file_loop_->PostTask(FROM_HERE, write_word_task); 634 file_loop_->PostTask(FROM_HERE, write_word_task);
634 else 635 else
635 write_word_task->Run(); 636 write_word_task->Run();
636 } 637 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698