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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2903633003: Revert of Add ScopedTaskEnvironment::ExecutionControlMode. (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 | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl.h
diff --git a/base/task_scheduler/task_scheduler_impl.h b/base/task_scheduler/task_scheduler_impl.h
index 1b05baf938a5629675439a022143613253520930..4907ce2df266e91e6aac6de9df4f213a1fa419dd 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -12,7 +12,6 @@
#include "base/callback.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/strings/string_piece.h"
#include "base/synchronization/atomic_flag.h"
@@ -39,19 +38,8 @@
// Default TaskScheduler implementation. This class is thread-safe.
class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
public:
- using TaskTrackerType =
-#if defined(OS_POSIX) && !defined(OS_NACL_SFI)
- TaskTrackerPosix;
-#else
- TaskTracker;
-#endif
-
- // |name| is used to label threads and histograms. |task_tracker| can be used
- // for tests that need more execution control. By default, you get the
- // production TaskTracker.
- explicit TaskSchedulerImpl(StringPiece name,
- std::unique_ptr<TaskTrackerType> task_tracker =
- MakeUnique<TaskTrackerType>());
+ // |name| is used to label threads and histograms.
+ explicit TaskSchedulerImpl(StringPiece name);
~TaskSchedulerImpl() override;
// TaskScheduler:
@@ -86,7 +74,11 @@
const std::string name_;
Thread service_thread_;
- const std::unique_ptr<TaskTrackerType> task_tracker_;
+#if defined(OS_POSIX) && !defined(OS_NACL_SFI)
+ TaskTrackerPosix task_tracker_;
+#else
+ TaskTracker task_tracker_;
+#endif
DelayedTaskManager delayed_task_manager_;
SchedulerSingleThreadTaskRunnerManager single_thread_task_runner_manager_;
« no previous file with comments | « no previous file | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698