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

Unified Diff: mojo/system/channel.cc

Issue 502573006: Remove implicit conversions from scoped_refptr to T* in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « mojo/spy/spy.cc ('k') | mojo/system/channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel.cc
diff --git a/mojo/system/channel.cc b/mojo/system/channel.cc
index c0b68f1a5fc84d2fcb3b8aa892389ccd6e60b992..78bd42805f95fe9a910e1dfe730cbfeec9e1cfe1 100644
--- a/mojo/system/channel.cc
+++ b/mojo/system/channel.cc
@@ -88,7 +88,7 @@ void Channel::Shutdown() {
it->second.message_pipe->OnRemove(it->second.port);
num_live++;
} else {
- DCHECK(!it->second.message_pipe);
+ DCHECK(!it->second.message_pipe.get());
viettrungluu 2014/08/25 19:57:05 Eh? This is a truth (i.e., (non)null) check. Which
dcheng 2014/08/25 19:58:29 I can't add a boolean test to scoped_refptr until
num_zombies++;
}
}
@@ -105,7 +105,7 @@ void Channel::WillShutdownSoon() {
MessageInTransit::EndpointId Channel::AttachMessagePipeEndpoint(
scoped_refptr<MessagePipe> message_pipe,
unsigned port) {
- DCHECK(message_pipe);
+ DCHECK(message_pipe.get());
viettrungluu 2014/08/25 19:57:04 "
DCHECK(port == 0 || port == 1);
MessageInTransit::EndpointId local_id;
« no previous file with comments | « mojo/spy/spy.cc ('k') | mojo/system/channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698