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

Unified Diff: base/task_scheduler/scheduler_worker_thread.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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_lock_impl.cc ('k') | base/task_scheduler/scheduler_worker_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/scheduler_worker_thread.h
diff --git a/base/task_scheduler/scheduler_worker_thread.h b/base/task_scheduler/scheduler_worker_thread.h
index 908eaed93a9ea4c9a4aec9d93f08f41e45815a9b..8b129a3d5f20d38b8729f6df1ff49743378fab4f 100644
--- a/base/task_scheduler/scheduler_worker_thread.h
+++ b/base/task_scheduler/scheduler_worker_thread.h
@@ -5,11 +5,12 @@
#ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_THREAD_H_
#define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_THREAD_H_
+#include <memory>
+
#include "base/base_export.h"
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/synchronization/waitable_event.h"
#include "base/task_scheduler/scheduler_lock.h"
#include "base/task_scheduler/sequence.h"
@@ -49,7 +50,7 @@ class BASE_EXPORT SchedulerWorkerThread : public PlatformThread::Delegate {
// SchedulerWorkerThread has tried to run a Task from a Sequence returned by
// |get_work_callback|. |task_tracker| is used to handle shutdown behavior of
// Tasks. Returns nullptr if creating the underlying platform thread fails.
- static scoped_ptr<SchedulerWorkerThread> CreateSchedulerWorkerThread(
+ static std::unique_ptr<SchedulerWorkerThread> CreateSchedulerWorkerThread(
ThreadPriority thread_priority,
const Closure& main_entry_callback,
const GetWorkCallback& get_work_callback,
« no previous file with comments | « base/task_scheduler/scheduler_lock_impl.cc ('k') | base/task_scheduler/scheduler_worker_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698