summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_proxy.cc
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-03 20:35:09 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-03 20:35:09 +0000
commit1707726c90f2e3eca0c91e08586130988bd6edfd (patch)
tree8e36a6b66a3004386274f8b9b9d91d9207572588 /ipc/ipc_channel_proxy.cc
parentc4ca989fc5da9169319c96ecf8549a3bc082981b (diff)
downloadchromium_src-1707726c90f2e3eca0c91e08586130988bd6edfd.zip
chromium_src-1707726c90f2e3eca0c91e08586130988bd6edfd.tar.gz
chromium_src-1707726c90f2e3eca0c91e08586130988bd6edfd.tar.bz2
Clean up channel modes
Makes channel modes flags instead of a straight enum allowing us to check properties directly. BUG=none TEST=BUILD Review URL: http://codereview.chromium.org/6334061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_proxy.cc')
-rw-r--r--ipc/ipc_channel_proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
index e6976ac..d0f0a54 100644
--- a/ipc/ipc_channel_proxy.cc
+++ b/ipc/ipc_channel_proxy.cc
@@ -307,7 +307,7 @@ void ChannelProxy::Init(const IPC::ChannelHandle& channel_handle,
// to be created immediately so that it can be accessed and passed
// to other processes. Forcing it to be created immediately avoids
// race conditions that may otherwise arise.
- if (mode == Channel::MODE_SERVER || mode == Channel::MODE_NAMED_SERVER) {
+ if (mode & Channel::MODE_SERVER_FLAG) {
create_pipe_now = true;
}
#endif // defined(OS_POSIX)