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

Unified Diff: remoting/host/continue_window.cc

Issue 15927028: Update remoting/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: remoting/host/continue_window.cc
diff --git a/remoting/host/continue_window.cc b/remoting/host/continue_window.cc
index eee0f176d5140ea4caaf8c3ca013e2f98e60d229..abea5cf97b86c3fdbcaa69cdc0c11de6f07ed040 100644
--- a/remoting/host/continue_window.cc
+++ b/remoting/host/continue_window.cc
@@ -22,8 +22,8 @@ ContinueWindow::~ContinueWindow() {
void ContinueWindow::Start(
const base::WeakPtr<ClientSessionControl>& client_session_control) {
DCHECK(CalledOnValidThread());
- DCHECK(!client_session_control_);
- DCHECK(client_session_control);
+ DCHECK(!client_session_control_.get());
+ DCHECK(client_session_control.get());
client_session_control_ = client_session_control;
@@ -37,7 +37,7 @@ void ContinueWindow::ContinueSession() {
disconnect_timer_.Stop();
- if (!client_session_control_)
+ if (!client_session_control_.get())
return;
// Hide the Continue window and resume the session.
@@ -53,7 +53,7 @@ void ContinueWindow::DisconnectSession() {
DCHECK(CalledOnValidThread());
disconnect_timer_.Stop();
- if (client_session_control_)
+ if (client_session_control_.get())
client_session_control_->DisconnectSession();
}
@@ -64,7 +64,7 @@ ContinueWindow::ContinueWindow(const UiStrings& ui_strings)
void ContinueWindow::OnSessionExpired() {
DCHECK(CalledOnValidThread());
- if (!client_session_control_)
+ if (!client_session_control_.get())
return;
// Stop the remote input while the Continue window is shown.

Powered by Google App Engine
This is Rietveld 408576698