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

Unified Diff: chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc b/chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc
index b33262e9ea68e5076f37fffc1a2dc93f0d3fc26f..3eba35cbb1504072f53a4e18c26b63386426c5ea 100644
--- a/chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/spellcheck_result.h"
@@ -41,9 +42,9 @@ class SpellcheckPlatformMacTest: public testing::Test {
void CompletionCallback(const std::vector<SpellCheckResult>& results) {
results_ = results;
callback_finished_ = true;
- message_loop_.PostTask(FROM_HERE, base::Bind(
- &SpellcheckPlatformMacTest::QuitMessageLoop,
- base::Unretained(this)));
+ message_loop_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&SpellcheckPlatformMacTest::QuitMessageLoop,
+ base::Unretained(this)));
}
base::MessageLoopForUI message_loop_;

Powered by Google App Engine
This is Rietveld 408576698