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

Unified Diff: remoting/host/ipc_host_event_logger.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/ipc_host_event_logger.cc
diff --git a/remoting/host/ipc_host_event_logger.cc b/remoting/host/ipc_host_event_logger.cc
index d0e9679f5e63ef9df2a5493ede682f939b493faa..f012d410a9d83bab4d986d4836ffd81dafa9a430 100644
--- a/remoting/host/ipc_host_event_logger.cc
+++ b/remoting/host/ipc_host_event_logger.cc
@@ -23,7 +23,7 @@ IpcHostEventLogger::IpcHostEventLogger(base::WeakPtr<HostStatusMonitor> monitor,
IpcHostEventLogger::~IpcHostEventLogger() {
DCHECK(CalledOnValidThread());
- if (monitor_)
+ if (monitor_.get())
monitor_->RemoveStatusObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698