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

Unified Diff: remoting/host/ipc_host_event_logger.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/ipc_host_event_logger.h ('k') | remoting/host/local_input_monitor_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_host_event_logger.cc
diff --git a/remoting/host/ipc_host_event_logger.cc b/remoting/host/ipc_host_event_logger.cc
index 154ac607483ff89bd9e1fa00f488deaecc26ad15..501e20ca2df4b3aa7482858efc60491b46f3a611 100644
--- a/remoting/host/ipc_host_event_logger.cc
+++ b/remoting/host/ipc_host_event_logger.cc
@@ -21,33 +21,33 @@ IpcHostEventLogger::IpcHostEventLogger(base::WeakPtr<HostStatusMonitor> monitor,
}
IpcHostEventLogger::~IpcHostEventLogger() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (monitor_.get())
monitor_->RemoveStatusObserver(this);
}
void IpcHostEventLogger::OnAccessDenied(const std::string& jid) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
daemon_channel_->Send(new ChromotingNetworkDaemonMsg_AccessDenied(jid));
}
void IpcHostEventLogger::OnClientAuthenticated(const std::string& jid) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
daemon_channel_->Send(
new ChromotingNetworkDaemonMsg_ClientAuthenticated(jid));
}
void IpcHostEventLogger::OnClientConnected(const std::string& jid) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
daemon_channel_->Send(new ChromotingNetworkDaemonMsg_ClientConnected(jid));
}
void IpcHostEventLogger::OnClientDisconnected(const std::string& jid) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
daemon_channel_->Send(new ChromotingNetworkDaemonMsg_ClientDisconnected(jid));
}
@@ -56,7 +56,7 @@ void IpcHostEventLogger::OnClientRouteChange(
const std::string& jid,
const std::string& channel_name,
const protocol::TransportRoute& route) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
SerializedTransportRoute serialized_route;
serialized_route.type = route.type;
@@ -70,13 +70,13 @@ void IpcHostEventLogger::OnClientRouteChange(
}
void IpcHostEventLogger::OnShutdown() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
daemon_channel_->Send(new ChromotingNetworkDaemonMsg_HostShutdown());
}
void IpcHostEventLogger::OnStart(const std::string& xmpp_login) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
daemon_channel_->Send(new ChromotingNetworkDaemonMsg_HostStarted(xmpp_login));
}
« no previous file with comments | « remoting/host/ipc_host_event_logger.h ('k') | remoting/host/local_input_monitor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698