Commit 03084869 authored by Sorin Jianu's avatar Sorin Jianu Committed by Commit Bot

Eliminate base::PostTask legacy call in recovery_component_installer.cc

Bug: 1026641
Change-Id: I14eaebf153dd419c4453cb22b9c5fb8be7f5add5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2229242Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774912}
parent 4332393c
......@@ -416,7 +416,8 @@ void RecoveryComponentInstaller::Install(
auto result = update_client::InstallFunctionWrapper(
base::BindOnce(&RecoveryComponentInstaller::DoInstall,
base::Unretained(this), std::cref(unpack_path)));
base::PostTask(FROM_HERE, base::BindOnce(std::move(callback), result));
content::GetUIThreadTaskRunner({})->PostTask(
FROM_HERE, base::BindOnce(std::move(callback), result));
}
bool RecoveryComponentInstaller::DoInstall(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment