summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
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 /chrome/plugin
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 'chrome/plugin')
-rw-r--r--chrome/plugin/plugin_channel_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/plugin/plugin_channel_base.cc b/chrome/plugin/plugin_channel_base.cc
index e251e9e..3c43124 100644
--- a/chrome/plugin/plugin_channel_base.cc
+++ b/chrome/plugin/plugin_channel_base.cc
@@ -44,7 +44,7 @@ PluginChannelBase* PluginChannelBase::GetChannel(
if (!channel->channel_valid()) {
channel->channel_handle_ = channel_handle;
- if (mode == IPC::Channel::MODE_SERVER) {
+ if (mode & IPC::Channel::MODE_SERVER_FLAG) {
channel->channel_handle_.name.append(".");
channel->channel_handle_.name.append(base::IntToString(next_pipe_id++));
}