diff options
author | skyostil <skyostil@chromium.org> | 2015-06-10 09:44:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-10 16:45:48 +0000 |
commit | 140473b16767c66fc00fd7b0e6f6cc034a6712a8 (patch) | |
tree | 5ddeba7b60262d6f86b88adfc596dba8b5eae7a4 /chrome/renderer/spellchecker/spellcheck.cc | |
parent | c1162b1fc5090f8561c7650aecbdc6c61032115b (diff) | |
download | chromium_src-140473b16767c66fc00fd7b0e6f6cc034a6712a8.zip chromium_src-140473b16767c66fc00fd7b0e6f6cc034a6712a8.tar.gz chromium_src-140473b16767c66fc00fd7b0e6f6cc034a6712a8.tar.bz2 |
chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
This patch was mostly autogenerated with https://codereview.chromium.org/1010073002/.
BUG=465354
Review URL: https://codereview.chromium.org/1167163002
Cr-Commit-Position: refs/heads/master@{#333745}
Diffstat (limited to 'chrome/renderer/spellchecker/spellcheck.cc')
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc index 4a0312a..a43c727 100644 --- a/chrome/renderer/spellchecker/spellcheck.cc +++ b/chrome/renderer/spellchecker/spellcheck.cc @@ -10,6 +10,8 @@ #include "base/bind.h" #include "base/location.h" #include "base/logging.h" +#include "base/single_thread_task_runner.h" +#include "base/thread_task_runner_handle.h" #include "chrome/common/spellcheck_common.h" #include "chrome/common/spellcheck_messages.h" #include "chrome/common/spellcheck_result.h" @@ -355,10 +357,9 @@ void SpellCheck::PostDelayedSpellCheckTask(SpellcheckRequest* request) { if (!request) return; - base::MessageLoopProxy::current()->PostTask(FROM_HERE, - base::Bind(&SpellCheck::PerformSpellCheck, - AsWeakPtr(), - base::Owned(request))); + base::ThreadTaskRunnerHandle::Get()->PostTask( + FROM_HERE, base::Bind(&SpellCheck::PerformSpellCheck, AsWeakPtr(), + base::Owned(request))); } #endif |