Commit ff36243b authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

Deprecate content::BrowserThread::PostAfterStartupTask

BEST_EFFORT tasks will not run until after startup and only if there is no
critical work pending.

This patch should not change the current behaviour. Please double check
whether the task being posted via BrowserThread::PostAfterStartupTask
really cares about being run after startup or just wants to run after
any critical work was completed. If you are fine with it just running
after critical work has completed LGTM and keep on with your life. If
that is not the case let me know and please explain your reasoning in a
comment.

More details:
https://docs.google.com/document/d/1P8PV1qX2cOR2WRFD6v9CjygJkE_mftCtJ7BoqQHCKZI

This CL was uploaded by git cl split.

R=georgesak@chromium.org

Bug: 887407
Change-Id: I12017f988c1ec4c04ce0ce3a52725bc6b9b62240
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1632258
Auto-Submit: Carlos Caballero <carlscab@google.com>
Reviewed-by: default avatarGeorges Khalil <georgesak@chromium.org>
Reviewed-by: default avatarOwen Min <zmin@chromium.org>
Commit-Queue: Georges Khalil <georgesak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#663788}
parent d6e3031d
......@@ -150,7 +150,7 @@ base::Version GetLastVersion(const base::FilePath& user_data_dir) {
void DeleteMovedUserDataSoon() {
base::FilePath user_data_dir;
base::PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
content::BrowserThread::PostAfterStartupTask(
content::BrowserThread::PostBestEffortTask(
FROM_HERE,
base::CreateTaskRunnerWithTraits(
{base::MayBlock(), base::TaskPriority::BEST_EFFORT,
......
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