Commit dd56728e authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

Migrate off BrowserThread::DeleteSoon in /chrome/browser/extensions

Instead use base::DeleteSoon which enforces usage of TaskTraits.

This CL is a no-op as-is. It was recently discovered however that some
callers did BrowserThread::DeleteSoon() with pending tasks running on
different task queues (different traits  -- e.g.

TaskTraits to make this more obvious. Please review whether calls in
this CL can be migrated as-is or need additional traits to match
potentially pending tasks.

Split from https://chromium-review.googlesource.com/c/chromium/src/+/1894109
for cursory review.

This CL was uploaded by git cl split.

R=rdevlin.cronin@chromium.org


TaskPriority: :BEST_EFFORT) which can result in out-of-order deletion...
BrowserThread: :DeleteSoon() is being migrated to base::DeleteSoon() w/
Bug: 1019767
Change-Id: Ibe6c8f69d48fd1a22126b85f81332184f58255f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895639
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711746}
parent 1a772023
......@@ -209,8 +209,8 @@ void ChromeExtensionCookies::Shutdown() {
// Note: during tests this may be called with IO thread == UI thread. If this
// were to use unique_ptr<.., DeleteOnIOThread> that case would result in
// unwanted synchronous deletion; hence DeleteSoon is used by hand.
content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE,
std::move(io_data_));
base::DeleteSoon(FROM_HERE, {content::BrowserThread::IO},
std::move(io_data_));
profile_ = nullptr;
}
......
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