diff options
author | sleffler@chromium.org <sleffler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 06:46:20 +0000 |
---|---|---|
committer | sleffler@chromium.org <sleffler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 06:46:20 +0000 |
commit | e146bfcf4924815ea32b0e135d720eed26d5bade (patch) | |
tree | 2f6f69341aca38b5f2eb5ec5b0725651f4ea3c3b /dbus/values_util.cc | |
parent | 9129b4fc22326a23a141c668e936e650801521e0 (diff) | |
download | chromium_src-e146bfcf4924815ea32b0e135d720eed26d5bade.zip chromium_src-e146bfcf4924815ea32b0e135d720eed26d5bade.tar.gz chromium_src-e146bfcf4924815ea32b0e135d720eed26d5bade.tar.bz2 |
dbus: add support for passing file descriptors
Add support for passing file descriptors in messages.
BUG=chromium-os:27809
TEST=run unit tests
Change-Id: I48e52e52ea1e1a4b96bb0dbec7242337e5871510
Review URL: http://codereview.chromium.org/9700072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/values_util.cc')
-rw-r--r-- | dbus/values_util.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus/values_util.cc b/dbus/values_util.cc index 96cc37b3..ccd7651 100644 --- a/dbus/values_util.cc +++ b/dbus/values_util.cc @@ -163,6 +163,11 @@ Value* PopDataAsValue(MessageReader* reader) { result = Value::CreateStringValue(value.value()); break; } + case Message::UNIX_FD: { + // Cannot distinguish a file descriptor from an int + NOTREACHED(); + break; + } case Message::ARRAY: { MessageReader sub_reader(NULL); if (reader->PopArray(&sub_reader)) { |