Commit f2ddf768 authored by rogerta@chromium.org's avatar rogerta@chromium.org

Clear list of pending /ListAccount callsbacks when shutting down or when

disconnecting the profile.

BUG=373861

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272415 0039d316-1c4b-4281-b951-d872f2087c98
parent 66d3381b
...@@ -237,6 +237,7 @@ void AccountReconcilor::Shutdown() { ...@@ -237,6 +237,7 @@ void AccountReconcilor::Shutdown() {
merge_session_helper_.CancelAll(); merge_session_helper_.CancelAll();
merge_session_helper_.RemoveObserver(this); merge_session_helper_.RemoveObserver(this);
gaia_fetcher_.reset(); gaia_fetcher_.reset();
get_gaia_accounts_callbacks_.clear();
DeleteFetchers(); DeleteFetchers();
UnregisterWithSigninManager(); UnregisterWithSigninManager();
UnregisterWithTokenService(); UnregisterWithTokenService();
...@@ -349,6 +350,7 @@ void AccountReconcilor::GoogleSigninSucceeded(const std::string& username, ...@@ -349,6 +350,7 @@ void AccountReconcilor::GoogleSigninSucceeded(const std::string& username,
void AccountReconcilor::GoogleSignedOut(const std::string& username) { void AccountReconcilor::GoogleSignedOut(const std::string& username) {
VLOG(1) << "AccountReconcilor::GoogleSignedOut: signed out"; VLOG(1) << "AccountReconcilor::GoogleSignedOut: signed out";
gaia_fetcher_.reset(); gaia_fetcher_.reset();
get_gaia_accounts_callbacks_.clear();
AbortReconcile(); AbortReconcile();
UnregisterWithTokenService(); UnregisterWithTokenService();
UnregisterForCookieChanges(); UnregisterForCookieChanges();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment