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

Unified Diff: base/task_scheduler/scheduler_worker_stack_unittest.cc

Issue 2692863012: SchedulerWorker Refcounting for Destruction in Production (Closed)
Patch Set: Remove Last Vestiges of std::unique_ptr SchedulerWorker Created 3 years, 10 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 | « base/task_scheduler/scheduler_worker_pool_impl.cc ('k') | base/task_scheduler/scheduler_worker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/scheduler_worker_stack_unittest.cc
diff --git a/base/task_scheduler/scheduler_worker_stack_unittest.cc b/base/task_scheduler/scheduler_worker_stack_unittest.cc
index 520e52cd61f556ff52952fc63284d71ab162b2bf..b7d57ff1ef16623d7c0acb35e5af7e5efb7ae795 100644
--- a/base/task_scheduler/scheduler_worker_stack_unittest.cc
+++ b/base/task_scheduler/scheduler_worker_stack_unittest.cc
@@ -67,9 +67,9 @@ class TaskSchedulerWorkerStackTest : public testing::Test {
worker_c_->JoinForTesting();
}
- std::unique_ptr<SchedulerWorker> worker_a_;
- std::unique_ptr<SchedulerWorker> worker_b_;
- std::unique_ptr<SchedulerWorker> worker_c_;
+ scoped_refptr<SchedulerWorker> worker_a_;
+ scoped_refptr<SchedulerWorker> worker_b_;
+ scoped_refptr<SchedulerWorker> worker_c_;
private:
TaskTracker task_tracker_;
« no previous file with comments | « base/task_scheduler/scheduler_worker_pool_impl.cc ('k') | base/task_scheduler/scheduler_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698