cros: Fix O2TS observer list check empty failure.
commit516515f01c36b3480b0171d38c7bb8268e8a106c
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 26 Sep 2013 18:20:08 +0000 (26 18:20 +0000)
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 26 Sep 2013 18:20:08 +0000 (26 18:20 +0000)
treede7cd18d59e7e73787555736228885ae70a62999
parentd5da6536cbcd9f695956bb6d9dd3795f91b9a281
cros: Fix O2TS observer list check empty failure.

ProfileDownloader could be destructed before refresh token is
available and leaving a dangling observer on PO2TS. Ensure it
is removed from PO2TS observer list on destruction.

Also checks if account_id matches the account on the profile and ignore unmatched calls.

BUG=297322

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225511 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/profiles/profile_downloader.cc