Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: components/signin/core/browser/gaia_cookie_manager_service.cc

Issue 2397263002: Add LogOut method to GaiaCookieManagerService::Observer. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/signin/core/browser/gaia_cookie_manager_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/gaia_cookie_manager_service.cc
diff --git a/components/signin/core/browser/gaia_cookie_manager_service.cc b/components/signin/core/browser/gaia_cookie_manager_service.cc
index cb807f69f377eabea044767f4491ad512ee971c9..de75979164ac5291a8e3a09d98ac7c57f0867f12 100644
--- a/components/signin/core/browser/gaia_cookie_manager_service.cc
+++ b/components/signin/core/browser/gaia_cookie_manager_service.cc
@@ -666,8 +666,10 @@ void GaiaCookieManagerService::OnLogOutSuccess() {
VLOG(1) << "GaiaCookieManagerService::OnLogOutSuccess";
list_accounts_stale_ = true;
-
fetcher_backoff_.InformOfRequest(true);
+ FOR_EACH_OBSERVER(Observer, observer_list_,
+ OnLogOutAccountsFromCookieCompleted(
+ GoogleServiceAuthError(GoogleServiceAuthError::NONE)));
HandleNextRequest();
}
@@ -687,6 +689,8 @@ void GaiaCookieManagerService::OnLogOutFailure(
return;
}
+ FOR_EACH_OBSERVER(Observer, observer_list_,
+ OnLogOutAccountsFromCookieCompleted(error));
HandleNextRequest();
}
« no previous file with comments | « components/signin/core/browser/gaia_cookie_manager_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698