chromeos: bluetooth: tie Proxy lifetime to object, not observer
commitdaa9c0a881f1d85130f0e81d7dfbb5fe1a59b428
authorkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 4 Feb 2012 04:31:44 +0000 (4 04:31 +0000)
committerkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 4 Feb 2012 04:31:44 +0000 (4 04:31 +0000)
treec980f3a2c05c31c36cc971c66698a2ef66316357
parent9900c6f7da1e21d66511fe7c8a44fca9f03a7d88
chromeos: bluetooth: tie Proxy lifetime to object, not observer

Change the lifetime of Object Proxies to the remote object, not any
Observer; one of the problems with the previous method was adding
a second observer would treat every new attempt to add an observer
as a new proxy so reconnect signals, etc.

The other main problem is that you couldn't call methods unless there
was an observer that had created the object proxy.

BUG=chromium-os:22086
TEST=verified methods still work

Change-Id: Ic58b88bbad84c7728abd16ddc48d11174f59f59f

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120456

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120469 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/bluetooth/bluetooth_adapter.cc
chrome/browser/chromeos/dbus/bluetooth_adapter_client.cc
chrome/browser/chromeos/dbus/bluetooth_adapter_client.h
chrome/browser/chromeos/dbus/dbus_thread_manager.cc
chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h