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

Unified Diff: remoting/host/host_window_proxy.cc

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/host_window.cc ('k') | remoting/host/ipc_host_event_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_window_proxy.cc
diff --git a/remoting/host/host_window_proxy.cc b/remoting/host/host_window_proxy.cc
index 862398be672d8f305bc84baf4c0d57099e33f16f..d9f23b0c33627fd7273ba7c2fbb2199316d5b5ab 100644
--- a/remoting/host/host_window_proxy.cc
+++ b/remoting/host/host_window_proxy.cc
@@ -75,19 +75,19 @@ HostWindowProxy::HostWindowProxy(
// Detach |host_window| from the calling thread so that |Core| could run it on
// the |ui_task_runner_| thread.
- host_window->DetachFromThread();
+ DETACH_FROM_SEQUENCE(host_window->sequence_checker_);
core_ = new Core(caller_task_runner, ui_task_runner, std::move(host_window));
}
HostWindowProxy::~HostWindowProxy() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
core_->Stop();
}
void HostWindowProxy::Start(
const base::WeakPtr<ClientSessionControl>& client_session_control) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
core_->Start(client_session_control);
}
« no previous file with comments | « remoting/host/host_window.cc ('k') | remoting/host/ipc_host_event_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698