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

Unified Diff: ui/base/ime/chromeos/ime_keyboard_x11.cc

Issue 2049493004: Remove use of deprecated MessageLoop methods in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « ui/aura/test/ui_controls_factory_ozone.cc ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/chromeos/ime_keyboard_x11.cc
diff --git a/ui/base/ime/chromeos/ime_keyboard_x11.cc b/ui/base/ime/chromeos/ime_keyboard_x11.cc
index e25e3da9a661ce6d38a7350601605cbfd67e049b..8822144133b39d0316befdd431c23497ea293022 100644
--- a/ui/base/ime/chromeos/ime_keyboard_x11.cc
+++ b/ui/base/ime/chromeos/ime_keyboard_x11.cc
@@ -8,6 +8,9 @@
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "ui/gfx/x/x11_types.h"
namespace chromeos {
@@ -183,11 +186,9 @@ void ImeKeyboardX11::PollUntilChildFinish(const base::ProcessHandle handle) {
switch (base::GetTerminationStatus(handle, &exit_code)) {
case base::TERMINATION_STATUS_STILL_RUNNING:
DVLOG(1) << "PollUntilChildFinish: Try waiting again";
- base::MessageLoop::current()->PostDelayedTask(
- FROM_HERE,
- base::Bind(&ImeKeyboardX11::PollUntilChildFinish,
- weak_factory_.GetWeakPtr(),
- handle),
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE, base::Bind(&ImeKeyboardX11::PollUntilChildFinish,
+ weak_factory_.GetWeakPtr(), handle),
base::TimeDelta::FromMilliseconds(kSetLayoutCommandCheckDelayMs));
return;
« no previous file with comments | « ui/aura/test/ui_controls_factory_ozone.cc ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698