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

Unified Diff: remoting/host/win/rdp_client_window.cc

Issue 751513003: Remove implicit conversions from scoped_refptr to T* in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/win/rdp_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « remoting/host/win/rdp_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698