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

Unified Diff: remoting/host/disconnect_window_win.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/disconnect_window_mac.mm ('k') | remoting/host/host_status_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window_win.cc
diff --git a/remoting/host/disconnect_window_win.cc b/remoting/host/disconnect_window_win.cc
index 19e7356b6a9613da238577761dab600626413488..adde922361d33188f1a035623e0207d917093d5d 100644
--- a/remoting/host/disconnect_window_win.cc
+++ b/remoting/host/disconnect_window_win.cc
@@ -121,7 +121,7 @@ DisconnectWindowWin::~DisconnectWindowWin() {
void DisconnectWindowWin::Start(
const base::WeakPtr<ClientSessionControl>& client_session_control) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(!client_session_control_);
DCHECK(client_session_control);
@@ -161,7 +161,7 @@ BOOL DisconnectWindowWin::OnDialogMessage(HWND hwnd,
UINT message,
WPARAM wparam,
LPARAM lparam) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
switch (message) {
// Ignore close messages.
@@ -228,7 +228,7 @@ BOOL DisconnectWindowWin::OnDialogMessage(HWND hwnd,
}
bool DisconnectWindowWin::BeginDialog() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(!hwnd_);
hwnd_ =
@@ -252,7 +252,7 @@ bool DisconnectWindowWin::BeginDialog() {
}
void DisconnectWindowWin::EndDialog() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (has_hotkey_) {
UnregisterHotKey(hwnd_, DISCONNECT_HOTKEY_ID);
@@ -282,7 +282,7 @@ bool DisconnectWindowWin::GetControlRect(HWND control, RECT* rect) {
}
void DisconnectWindowWin::SetDialogPosition() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// Try to center the window above the task-bar. If that fails, use the
// primary monitor. If that fails (very unlikely), use the default position.
@@ -302,7 +302,7 @@ void DisconnectWindowWin::SetDialogPosition() {
}
bool DisconnectWindowWin::SetStrings() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// Localize the disconnect button text and measure length of the old and new
// labels.
« no previous file with comments | « remoting/host/disconnect_window_mac.mm ('k') | remoting/host/host_status_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698