summaryrefslogtreecommitdiff
path: root/update_engine_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'update_engine_client.cc')
-rw-r--r--update_engine_client.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_engine_client.cc b/update_engine_client.cc
index a721f7a7..31448eaa 100644
--- a/update_engine_client.cc
+++ b/update_engine_client.cc
@@ -29,6 +29,7 @@
#include <base/strings/string_number_conversions.h>
#include <base/strings/string_split.h>
#include <base/threading/platform_thread.h>
+#include <base/threading/thread_task_runner_handle.h>
#include <brillo/daemons/daemon.h>
#include <brillo/flag_helper.h>
#include <brillo/key_value_store.h>
@@ -86,7 +87,7 @@ class UpdateEngineClient : public brillo::Daemon {
// We can't call QuitWithExitCode from OnInit(), so we delay the execution
// of the ProcessFlags method after the Daemon initialization is done.
- base::MessageLoop::current()->task_runner()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&UpdateEngineClient::ProcessFlagsAndExit,
base::Unretained(this)));