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

Unified Diff: components/translate/ios/browser/ios_translate_driver.mm

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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: components/translate/ios/browser/ios_translate_driver.mm
diff --git a/components/translate/ios/browser/ios_translate_driver.mm b/components/translate/ios/browser/ios_translate_driver.mm
index 7072616e0c2cc125d7d9aec46ee19cb3e40eed91..a83d5c083eedd1237a4cfd1918dfd53e4a0c5a69 100644
--- a/components/translate/ios/browser/ios_translate_driver.mm
+++ b/components/translate/ios/browser/ios_translate_driver.mm
@@ -5,10 +5,9 @@
#include "components/translate/ios/browser/ios_translate_driver.h"
#include "base/bind.h"
-#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "components/translate/core/browser/translate_client.h"
#include "components/translate/core/browser/translate_manager.h"
@@ -236,7 +235,7 @@ void IOSTranslateDriver::OnTranslateScriptReady(bool success,
: kAutoDetectionLanguage;
translate_controller_->StartTranslation(source_language_, target_language_);
// Check the status of the translation -- after a delay.
- base::MessageLoop::current()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, base::Bind(&IOSTranslateDriver::CheckTranslateStatus,
weak_method_factory_.GetWeakPtr(), source_language_,
target_language_, pending_page_seq_no_),

Powered by Google App Engine
This is Rietveld 408576698