| 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" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/thread.h" | 13 #include "base/thread.h" |
| 14 #include "chrome/app/locales/locale_settings.h" | 14 #include "chrome/app/locales/locale_settings.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/net/url_fetcher.h" | 16 #include "chrome/browser/net/url_fetcher.h" |
| 17 #if defined(OS_WIN) |
| 18 // TODO(port): remove scaffolding, use profile.h for both POSIX and WIN. |
| 17 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
| 20 #endif |
| 18 #include "chrome/common/chrome_constants.h" | 21 #include "chrome/common/chrome_constants.h" |
| 19 #include "chrome/common/chrome_counters.h" | 22 #include "chrome/common/chrome_counters.h" |
| 20 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
| 21 #include "chrome/common/l10n_util.h" | 24 #include "chrome/common/l10n_util.h" |
| 22 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 23 #include "chrome/common/pref_service.h" | 26 #include "chrome/common/pref_service.h" |
| 24 #include "chrome/third_party/hunspell/src/hunspell/hunspell.hxx" | 27 #include "chrome/third_party/hunspell/src/hunspell/hunspell.hxx" |
| 25 #include "net/url_request/url_request.h" | 28 #include "net/url_request/url_request.h" |
| 26 | 29 |
| 27 #include "generated_resources.h" | 30 #include "generated_resources.h" |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 hunspell_->put_word(word_to_add.c_str()); | 597 hunspell_->put_word(word_to_add.c_str()); |
| 595 | 598 |
| 596 // Now add the word to the custom dictionary file. | 599 // Now add the word to the custom dictionary file. |
| 597 Task* write_word_task = | 600 Task* write_word_task = |
| 598 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word); | 601 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word); |
| 599 if (file_loop_) | 602 if (file_loop_) |
| 600 file_loop_->PostTask(FROM_HERE, write_word_task); | 603 file_loop_->PostTask(FROM_HERE, write_word_task); |
| 601 else | 604 else |
| 602 write_word_task->Run(); | 605 write_word_task->Run(); |
| 603 } | 606 } |
| OLD | NEW |