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

Unified Diff: ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm

Issue 1522873002: Force Account Consistency off for Logout call on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « google_apis/gaia/gaia_auth_fetcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm
diff --git a/ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm b/ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm
index 7722186e6d942a48f5b3b7fec535e2a9630500e4..ce8d7343bf633fed028477c43d172dcde43b3558 100644
--- a/ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm
+++ b/ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm
@@ -320,7 +320,12 @@ GaiaAuthFetcherIOS::GaiaAuthFetcherIOS(GaiaAuthConsumer* consumer,
web::BrowserState* browser_state)
: GaiaAuthFetcher(consumer, source, getter),
bridge_(new GaiaAuthFetcherIOSBridge(this, browser_state)),
- browser_state_(browser_state) {}
+ browser_state_(browser_state) {
+ // Account Consistency needs to be disabled for the Logout call. There is a
+ // race with the cookie clearing request (handled by
+ // AccountConsistencyService), so we invalidate the cookie for the call.
+ SetLogoutHeaders("Cookie: X-CHROME-CONNECTED=EXPIRED;");
+}
GaiaAuthFetcherIOS::~GaiaAuthFetcherIOS() {
}
« no previous file with comments | « google_apis/gaia/gaia_auth_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698