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

Unified Diff: chromeos/process_proxy/process_proxy_registry.h

Issue 2909113003: Deprecate NonThreadSafe in chromeos/process_proxy 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 | chromeos/process_proxy/process_proxy_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/process_proxy/process_proxy_registry.h
diff --git a/chromeos/process_proxy/process_proxy_registry.h b/chromeos/process_proxy/process_proxy_registry.h
index 428a61c1ec250f3a18ac359ce168fd5432c0e3c4..16ca7b535a3bbb6e71d91e22f8c84090b79dc5b3 100644
--- a/chromeos/process_proxy/process_proxy_registry.h
+++ b/chromeos/process_proxy/process_proxy_registry.h
@@ -13,7 +13,7 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/threading/thread.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/process_proxy/process_proxy.h"
@@ -22,7 +22,7 @@ namespace chromeos {
// Keeps track of all created ProcessProxies. It is created lazily and should
// live on a single thread (where all methods must be called).
-class CHROMEOS_EXPORT ProcessProxyRegistry : public base::NonThreadSafe {
+class CHROMEOS_EXPORT ProcessProxyRegistry {
public:
using OutputCallback = base::Callback<void(int terminal_id,
const std::string& output_type,
@@ -73,6 +73,8 @@ class CHROMEOS_EXPORT ProcessProxyRegistry : public base::NonThreadSafe {
std::unique_ptr<base::Thread> watcher_thread_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(ProcessProxyRegistry);
};
« no previous file with comments | « no previous file | chromeos/process_proxy/process_proxy_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698