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

Unified Diff: remoting/host/win/unprivileged_process_delegate.h

Issue 2911893003: Deprecate NonThreadSafe in remoting 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 | « remoting/host/win/rdp_client.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/unprivileged_process_delegate.h
diff --git a/remoting/host/win/unprivileged_process_delegate.h b/remoting/host/win/unprivileged_process_delegate.h
index 5059234ff4dd596a6567c141f913ee239cb7e1ca..aea33261fce30eee7313edf396b99468b4f698c0 100644
--- a/remoting/host/win/unprivileged_process_delegate.h
+++ b/remoting/host/win/unprivileged_process_delegate.h
@@ -13,7 +13,7 @@
#include "base/files/file_path.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/win/scoped_handle.h"
#include "ipc/ipc_listener.h"
#include "remoting/host/win/worker_process_launcher.h"
@@ -32,10 +32,8 @@ namespace remoting {
// Implements logic for launching and monitoring a worker process under a less
// privileged user account.
-class UnprivilegedProcessDelegate
- : public base::NonThreadSafe,
- public IPC::Listener,
- public WorkerProcessLauncher::Delegate {
+class UnprivilegedProcessDelegate : public IPC::Listener,
+ public WorkerProcessLauncher::Delegate {
public:
UnprivilegedProcessDelegate(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
@@ -72,6 +70,8 @@ class UnprivilegedProcessDelegate
// The handle of the worker process, if launched.
base::win::ScopedHandle worker_process_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate);
};
« no previous file with comments | « remoting/host/win/rdp_client.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698