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

Unified Diff: dbus/values_util.cc

Issue 9700072: dbus: add support for passing file descriptors (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: unit test nits Created 8 years, 9 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 | « dbus/message_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/values_util.cc
diff --git a/dbus/values_util.cc b/dbus/values_util.cc
index 96cc37b315281357fe7a7a49cf39e033594a3f39..ccd7651c9a4e89acf32bd50c1645b42904a7ddd7 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)) {
« no previous file with comments | « dbus/message_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698