Chromium Code Reviews| Index: chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.cc |
| diff --git a/chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.cc b/chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.cc |
| index a9b751b088779213ba1fd1e2bdb1e1d66b05e8f3..b5df98802edbfb32af6df683130bcb52347844d1 100644 |
| --- a/chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.cc |
| +++ b/chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.cc |
| @@ -11,7 +11,7 @@ |
| #include "base/bind.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/sequenced_task_runner.h" |
| -#include "base/threading/sequenced_worker_pool.h" |
| +#include "base/task_scheduler/post_task.h" |
| #include "chrome/browser/android/offline_pages/background_loader_offliner.h" |
| #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" |
| #include "chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.h" |
| @@ -36,7 +36,6 @@ |
| #include "components/offline_pages/core/offline_page_item.h" |
| #include "components/offline_pages/core/offline_page_model.h" |
| #include "content/public/browser/browser_context.h" |
| -#include "content/public/browser/browser_thread.h" |
| #include "jni/OfflinePageEvaluationBridge_jni.h" |
| #include "jni/SavePageRequest_jni.h" |
| @@ -132,8 +131,9 @@ std::unique_ptr<KeyedService> GetTestingRequestCoordinator( |
| std::unique_ptr<OfflinerPolicy> policy, |
| std::unique_ptr<Offliner> offliner) { |
| scoped_refptr<base::SequencedTaskRunner> background_task_runner = |
| - content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
| - content::BrowserThread::GetBlockingPool()->GetSequenceToken()); |
| + base::CreateSequencedTaskRunnerWithTraits( |
| + base::TaskTraits().MayBlock().WithPriority( |
| + base::TaskPriority::BACKGROUND)); |
|
romax
2017/04/24 20:00:30
I think the same comment by dewittj@ at https://co
fdoray
2017/04/26 19:29:37
Switched to no explicit priority. Priority will be
|
| Profile* profile = Profile::FromBrowserContext(context); |
| base::FilePath queue_store_path = |
| profile->GetPath().Append(chrome::kOfflinePageRequestQueueDirname); |