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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2817523004: Use StringPiece for TaskScheduler name. (Closed)
Patch Set: rebase Created 3 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/task_scheduler.cc ('k') | 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 c91865b8c6b7f41c21a33f0cf0db9060456de1b6..ac19a08801eebdf630a770a47613582cb5295d1d 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -13,6 +13,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/strings/string_piece.h"
#include "base/synchronization/atomic_flag.h"
#include "base/task_scheduler/scheduler_worker_pool_impl.h"
#include "base/task_scheduler/sequence.h"
@@ -42,7 +43,7 @@ class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
// Note: The names and priority hints in |init_params| are ignored.
// https://crbug.com/690706
static std::unique_ptr<TaskSchedulerImpl> Create(
- const std::string& name,
+ StringPiece name,
const TaskScheduler::InitParams& init_params);
~TaskSchedulerImpl() override;
@@ -70,7 +71,7 @@ class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
void JoinForTesting() override;
private:
- explicit TaskSchedulerImpl(const std::string& name);
+ explicit TaskSchedulerImpl(StringPiece name);
void Initialize(const TaskScheduler::InitParams& init_params);
« no previous file with comments | « base/task_scheduler/task_scheduler.cc ('k') | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698