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

Unified Diff: components/bookmarks/browser/startup_task_runner_service.h

Issue 2909963002: Deprecate NonThreadSafe in components/bookmarks in favor of SequenceChecker. (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 | components/bookmarks/browser/startup_task_runner_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/startup_task_runner_service.h
diff --git a/components/bookmarks/browser/startup_task_runner_service.h b/components/bookmarks/browser/startup_task_runner_service.h
index b39819af135d2a10201a9dd547fb5727df06d0c4..aed0e88f5fdd92e218f9ea91c92e591f97b1f943 100644
--- a/components/bookmarks/browser/startup_task_runner_service.h
+++ b/components/bookmarks/browser/startup_task_runner_service.h
@@ -7,7 +7,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/keyed_service/core/keyed_service.h"
namespace base {
@@ -18,8 +18,7 @@ class SequencedTaskRunner;
namespace bookmarks {
// This service manages the startup task runners.
-class StartupTaskRunnerService : public base::NonThreadSafe,
- public KeyedService {
+class StartupTaskRunnerService : public KeyedService {
public:
explicit StartupTaskRunnerService(
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
@@ -41,6 +40,8 @@ class StartupTaskRunnerService : public base::NonThreadSafe,
scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
scoped_refptr<base::DeferredSequencedTaskRunner> bookmark_task_runner_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(StartupTaskRunnerService);
};
« no previous file with comments | « no previous file | components/bookmarks/browser/startup_task_runner_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698