| Index: remoting/host/win/rdp_client_window.cc
|
| diff --git a/remoting/host/win/rdp_client_window.cc b/remoting/host/win/rdp_client_window.cc
|
| index 9b483b082daf42446aeacc9abf7b3d4af045ed38..b3dfcab35bf592d49e1f57b03b62c8675aa3f8cc 100644
|
| --- a/remoting/host/win/rdp_client_window.cc
|
| +++ b/remoting/host/win/rdp_client_window.cc
|
| @@ -122,8 +122,8 @@ RdpClientWindow::~RdpClientWindow() {
|
| if (m_hWnd)
|
| DestroyWindow();
|
|
|
| - DCHECK(!client_);
|
| - DCHECK(!client_settings_);
|
| + DCHECK(!client_.get());
|
| + DCHECK(!client_settings_.get());
|
| }
|
|
|
| bool RdpClientWindow::Connect(const webrtc::DesktopSize& screen_size) {
|
| @@ -209,7 +209,7 @@ void RdpClientWindow::InjectSas() {
|
| }
|
|
|
| void RdpClientWindow::OnClose() {
|
| - if (!client_) {
|
| + if (!client_.get()) {
|
| NotifyDisconnected();
|
| return;
|
| }
|
| @@ -478,7 +478,7 @@ scoped_refptr<RdpClientWindow::WindowHook>
|
| RdpClientWindow::WindowHook::Create() {
|
| scoped_refptr<WindowHook> window_hook = g_window_hook.Pointer()->Get();
|
|
|
| - if (!window_hook)
|
| + if (!window_hook.get())
|
| window_hook = new WindowHook();
|
|
|
| return window_hook;
|
|
|