| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 L"nl-NL", | 41 L"nl-NL", |
| 42 L"pt-BR", | 42 L"pt-BR", |
| 43 L"ru-RU", | 43 L"ru-RU", |
| 44 L"pl-PL", | 44 L"pl-PL", |
| 45 // L"th-TH", // Not to be included in Spellchecker as per B=1277824 | 45 // L"th-TH", // Not to be included in Spellchecker as per B=1277824 |
| 46 L"sv-SE", | 46 L"sv-SE", |
| 47 L"da-DK", | 47 L"da-DK", |
| 48 L"pt-PT", | 48 L"pt-PT", |
| 49 L"ro-RO", | 49 L"ro-RO", |
| 50 // L"hu-HU", // Not to be included in Spellchecker as per B=1277824 | 50 // L"hu-HU", // Not to be included in Spellchecker as per B=1277824 |
| 51 // L"he-IL", // Not to be included in Spellchecker as per B=1252241 | 51 L"he-IL", |
| 52 L"id-ID", | 52 L"id-ID", |
| 53 L"cs-CZ", | 53 L"cs-CZ", |
| 54 L"el-GR", | 54 L"el-GR", |
| 55 L"nb-NO", | 55 L"nb-NO", |
| 56 L"vi-VN", | 56 L"vi-VN", |
| 57 // L"bg-BG", // Not to be included in Spellchecker as per B=1277824 | 57 // L"bg-BG", // Not to be included in Spellchecker as per B=1277824 |
| 58 L"hr-HR", | 58 L"hr-HR", |
| 59 L"lt-LT", | 59 L"lt-LT", |
| 60 L"sk-SK", | 60 L"sk-SK", |
| 61 L"sl-SI", | 61 L"sl-SI", |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 hunspell_->put_word(word_to_add.c_str()); | 587 hunspell_->put_word(word_to_add.c_str()); |
| 588 | 588 |
| 589 // Now add the word to the custom dictionary file. | 589 // Now add the word to the custom dictionary file. |
| 590 Task* write_word_task = | 590 Task* write_word_task = |
| 591 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word); | 591 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word); |
| 592 if (file_loop_) | 592 if (file_loop_) |
| 593 file_loop_->PostTask(FROM_HERE, write_word_task); | 593 file_loop_->PostTask(FROM_HERE, write_word_task); |
| 594 else | 594 else |
| 595 write_word_task->Run(); | 595 write_word_task->Run(); |
| 596 } | 596 } |
| OLD | NEW |