Make ExportedObject and ObjectProxy own Bus as scoped_refptr.

They should own Bus as scoped_refptr, rather than raw pointer.
Otherwise, they may reference |bus_| after Bus is deleted.

I know this is convoluted. I'm planning to minimize use of
scoped_refptr from dbus/* but this change is necessary until then.

TEST=run dbus_unittest under valgrind and confirm no memory leaks
BUG=chromium-os:21379


Review URL: http://codereview.chromium.org/8201023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105222 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 6477a41b085ee5e470a0862848281f5009e5cb9f
4 files changed
tree: 6610a73542dbf04144ef890f267a1bd3d7db27c0
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/