| Index: net/disk_cache/cache_util.cc
|
| diff --git a/net/disk_cache/cache_util.cc b/net/disk_cache/cache_util.cc
|
| index 51ec95b492c4198d9d822c0fdb4790ebe0f780be..19e71b8fb39ce7d9dd385d6a229f69b1d9d2a202 100644
|
| --- a/net/disk_cache/cache_util.cc
|
| +++ b/net/disk_cache/cache_util.cc
|
| @@ -12,8 +12,8 @@
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/task_scheduler/post_task.h"
|
| #include "base/threading/thread_restrictions.h"
|
| -#include "base/threading/worker_pool.h"
|
|
|
| namespace {
|
|
|
| @@ -136,8 +136,13 @@ bool DelayedCacheCleanup(const base::FilePath& full_path) {
|
| return false;
|
| }
|
|
|
| - base::WorkerPool::PostTask(
|
| - FROM_HERE, base::Bind(&CleanupCallback, path, name_str), true);
|
| + base::PostTaskWithTraits(
|
| + FROM_HERE, base::TaskTraits()
|
| + .WithShutdownBehavior(
|
| + base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN)
|
| + .WithPriority(base::TaskPriority::BACKGROUND)
|
| + .MayBlock(),
|
| + base::Bind(&CleanupCallback, path, name_str));
|
| return true;
|
| }
|
|
|
|
|