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

Unified Diff: remoting/host/continue_window.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/client_session.cc ('k') | remoting/host/continue_window_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/continue_window.cc
diff --git a/remoting/host/continue_window.cc b/remoting/host/continue_window.cc
index 9871591c9bbe9cd7545493405108f5ff7db6c39f..97446da79087df2bc1d8e3903d9c31531ae00aca 100644
--- a/remoting/host/continue_window.cc
+++ b/remoting/host/continue_window.cc
@@ -21,7 +21,7 @@ ContinueWindow::~ContinueWindow() {
void ContinueWindow::Start(
const base::WeakPtr<ClientSessionControl>& client_session_control) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(!client_session_control_.get());
DCHECK(client_session_control.get());
@@ -33,7 +33,7 @@ void ContinueWindow::Start(
}
void ContinueWindow::ContinueSession() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
disconnect_timer_.Stop();
@@ -50,7 +50,7 @@ void ContinueWindow::ContinueSession() {
}
void ContinueWindow::DisconnectSession() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
disconnect_timer_.Stop();
if (client_session_control_.get())
@@ -60,7 +60,7 @@ void ContinueWindow::DisconnectSession() {
ContinueWindow::ContinueWindow() {}
void ContinueWindow::OnSessionExpired() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (!client_session_control_.get())
return;
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/continue_window_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698