Fix crash after Bluetooth profile is unregistered on ChromeOS.
commit98c0ed7cbd386a31da4b8ad84e590fdd01a2639e
authortengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 22 Mar 2014 04:51:29 +0000 (22 04:51 +0000)
committertengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 22 Mar 2014 04:51:29 +0000 (22 04:51 +0000)
tree2bc1437d5ba8dff56cb96da68b747ebde5c37445
parent5ac86a27ee8ca3477e227269c608f685c99a8742
Fix crash after Bluetooth profile is unregistered on ChromeOS.

The profile isn't removing itself as an Bluetooth adapter observer when it
is deleted after being unregistered, causing a segfault when the next time the
adapter tries to notify its observers.

BUG=351053

Review URL: https://codereview.chromium.org/208953003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258780 0039d316-1c4b-4281-b951-d872f2087c98
device/bluetooth/bluetooth_profile_chromeos.cc