diff options
author | rockot <rockot@chromium.org> | 2016-03-18 18:31:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-19 01:32:45 +0000 |
commit | da76b7305321b9f0de42b8ea438dcca39b7316de (patch) | |
tree | 15d8ad45799f2ae391b85fd5e5e46dd861fa953e /mojo | |
parent | e219f13c3619c1477c815f1db22aa4456d4d5f1c (diff) | |
download | chromium_src-da76b7305321b9f0de42b8ea438dcca39b7316de.zip chromium_src-da76b7305321b9f0de42b8ea438dcca39b7316de.tar.gz chromium_src-da76b7305321b9f0de42b8ea438dcca39b7316de.tar.bz2 |
[mojo-edk] Remove debug aliasing from ports layer
This was used when tracking down a thread-safety issue
a while ago. No longer needed. Also CHECK -> DCHECK.
BUG=None
R=amistry@chromium.org
Review URL: https://codereview.chromium.org/1815403002
Cr-Commit-Position: refs/heads/master@{#382169}
Diffstat (limited to 'mojo')
-rw-r--r-- | mojo/edk/system/ports/node.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mojo/edk/system/ports/node.cc b/mojo/edk/system/ports/node.cc index da2bdb0..aca9a55 100644 --- a/mojo/edk/system/ports/node.cc +++ b/mojo/edk/system/ports/node.cc @@ -6,7 +6,6 @@ #include <string.h> -#include "base/debug/alias.h" #include "base/logging.h" #include "base/memory/ref_counted.h" #include "base/synchronization/lock.h" @@ -1043,10 +1042,8 @@ int Node::WillSendMessage_Locked(Port* port, { for (size_t i = 0; i < message->num_ports(); ++i) { - PortName port_name = message->ports()[i]; - base::debug::Alias(&port_name); - ports[i] = GetPort_Locked(port_name); - CHECK(ports[i]); + ports[i] = GetPort_Locked(message->ports()[i]); + DCHECK(ports[i]); ports[i]->lock.Acquire(); int error = OK; |