Adding of library to mount removeable devices when found, and to notify listeners that a change happened to list of known devices. Uses DeviceKit-disks, and policykit-1 to mount drives and get notified of changes
Review URL: http://chromereview.prom.corp.google.com/1175100
git-svn-id: svn://chrome-svn/chromeos/trunk@100 06c00378-0e64-4dae-be16-12b19f9950a1
diff --git a/chromeos/dbus/dbus.h b/chromeos/dbus/dbus.h
index 0a86baa..30c3246 100644
--- a/chromeos/dbus/dbus.h
+++ b/chromeos/dbus/dbus.h
@@ -279,10 +279,12 @@
G_TYPE_STRING, property,
G_TYPE_INVALID,
G_TYPE_VALUE, &value,
- G_TYPE_INVALID))
+ G_TYPE_INVALID)){
+ LOG(ERROR) << "Getting property failed: " << (error->message ? error->message : "Unknown Error.");
return false;
- return glib::Retrieve<T>(value, result);
+ }
+ return glib::Retrieve(value, result);
}
// \brief RetrieveProperties returns a HashTable of all properties for the