| Index: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| index 94c282404267c13e1832d498408bd0d0006f7121..7e45a14accb98f25c6df5f47b2f8972061129db2 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| @@ -9,9 +9,11 @@
|
| #include <utility>
|
|
|
| #include "base/files/file_util.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/path_service.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "build/build_config.h"
|
| #include "chrome/browser/spellchecker/spellcheck_platform.h"
|
| #include "chrome/browser/spellchecker/spellcheck_service.h"
|
| @@ -119,7 +121,8 @@ void SpellcheckHunspellDictionary::Load() {
|
| spellcheck_platform::PlatformSupportsLanguage(language_)) {
|
| use_browser_spellchecker_ = true;
|
| spellcheck_platform::SetLanguage(language_);
|
| - base::MessageLoop::current()->PostTask(FROM_HERE,
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE,
|
| base::Bind(
|
| &SpellcheckHunspellDictionary::InformListenersOfInitialization,
|
| weak_ptr_factory_.GetWeakPtr()));
|
|
|