[shill] device, service objects need to register unique paths

BUG=chromium-os:15752
TEST=unit tests

Change-Id: I54a5b1fb3e156fb62ffff0bc49a411135c01a1d0
Reviewed-on: http://gerrit.chromium.org/gerrit/1897
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/device_dbus_adaptor.cc b/device_dbus_adaptor.cc
index 2626023..a164d53 100644
--- a/device_dbus_adaptor.cc
+++ b/device_dbus_adaptor.cc
@@ -8,19 +8,20 @@
 #include <map>
 #include <string>
 
+#include "shill/device.h"
+
 using std::map;
 using std::string;
 
 namespace shill {
 
-// TODO(cmasone): Figure out if we should be trying to own sub-interfaces.
 // static
-const char DeviceDBusAdaptor::kInterfaceName[] = SHILL_INTERFACE;  // ".Device";
+const char DeviceDBusAdaptor::kInterfaceName[] = SHILL_INTERFACE;
 // static
-const char DeviceDBusAdaptor::kPath[] = SHILL_PATH "/Device";
+const char DeviceDBusAdaptor::kPath[] = "/device/";
 
 DeviceDBusAdaptor::DeviceDBusAdaptor(DBus::Connection& conn, Device *device)
-    : DBusAdaptor(conn, string(kPath) + string("/") + device->Name()),
+    : DBusAdaptor(conn, kPath + device->UniqueName()),
       device_(device) {
 }
 DeviceDBusAdaptor::~DeviceDBusAdaptor() {}