Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: chrome/browser/task_manager/sampling/shared_sampler_win_unittest.cc

Issue 2879943002: Use TaskScheduler instead of SequencedWorkerPool in shared_sampler_win_unittest.cc. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/sampling/shared_sampler_win_unittest.cc
diff --git a/chrome/browser/task_manager/sampling/shared_sampler_win_unittest.cc b/chrome/browser/task_manager/sampling/shared_sampler_win_unittest.cc
index 15ad777eddbf8ba0dc0719010e916f8482af6d13..60932a3eb9d581f84ddf42b5678eb627807fbab7 100644
--- a/chrome/browser/task_manager/sampling/shared_sampler_win_unittest.cc
+++ b/chrome/browser/task_manager/sampling/shared_sampler_win_unittest.cc
@@ -14,6 +14,7 @@
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/sequenced_task_runner.h"
+#include "base/task_scheduler/post_task.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "chrome/browser/task_manager/sampling/shared_sampler_win_defines.h"
@@ -70,10 +71,7 @@ class SharedSamplerTest : public testing::Test {
private:
static scoped_refptr<base::SequencedTaskRunner> GetBlockingPoolRunner() {
- base::SequencedWorkerPool* blocking_pool =
- content::BrowserThread::GetBlockingPool();
- return blocking_pool->GetSequencedTaskRunner(
- blocking_pool->GetSequenceToken());
+ return base::CreateSequencedTaskRunnerWithTraits({base::MayBlock()});
}
void OnRefreshTypeFinished(int64_t finished_refresh_type) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698