diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-07 05:58:04 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-07 05:58:04 +0000 |
commit | 052b4862bbe045f2ac461f1d8ee07780b62ad919 (patch) | |
tree | fb7476eaf0c21d7b198184bfcd532c1439991af8 /remoting/host | |
parent | d9a362fdbe20a62e75dd81c17543bd993464e127 (diff) | |
download | chromium_src-052b4862bbe045f2ac461f1d8ee07780b62ad919.zip chromium_src-052b4862bbe045f2ac461f1d8ee07780b62ad919.tar.gz chromium_src-052b4862bbe045f2ac461f1d8ee07780b62ad919.tar.bz2 |
Make some non-Linux code use "if (weak_ptr)" style
This is a revert of r204109.
BUG=245942
TBR=darin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/15778017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/disconnect_window_win.cc | 6 | ||||
-rw-r--r-- | remoting/host/local_input_monitor_win.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/remoting/host/disconnect_window_win.cc b/remoting/host/disconnect_window_win.cc index bb8cf15..6d06346 100644 --- a/remoting/host/disconnect_window_win.cc +++ b/remoting/host/disconnect_window_win.cc @@ -103,8 +103,8 @@ DisconnectWindowWin::~DisconnectWindowWin() { void DisconnectWindowWin::Start( const base::WeakPtr<ClientSessionControl>& client_session_control) { DCHECK(CalledOnValidThread()); - DCHECK(!client_session_control_.get()); - DCHECK(client_session_control.get()); + DCHECK(!client_session_control_); + DCHECK(client_session_control); client_session_control_ = client_session_control; @@ -274,7 +274,7 @@ void DisconnectWindowWin::EndDialog() { hwnd_ = NULL; } - if (client_session_control_.get()) + if (client_session_control_) client_session_control_->DisconnectSession(); } diff --git a/remoting/host/local_input_monitor_win.cc b/remoting/host/local_input_monitor_win.cc index a0be226..98cd8a4 100644 --- a/remoting/host/local_input_monitor_win.cc +++ b/remoting/host/local_input_monitor_win.cc @@ -104,7 +104,7 @@ LocalInputMonitorWin::Core::Core( : caller_task_runner_(caller_task_runner), ui_task_runner_(ui_task_runner), client_session_control_(client_session_control) { - DCHECK(client_session_control_.get()); + DCHECK(client_session_control_); } void LocalInputMonitorWin::Core::Start() { |