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

Unified Diff: google_apis/gaia/gaia_auth_fetcher.cc

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.h ('k') | ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_auth_fetcher.cc
diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_fetcher.cc
index 38e7802bed699f15b24bbe0a05c1362283111e85..be2e2e5c692357aceede26c1fa2ea2b4a51eeb5c 100644
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -195,6 +195,10 @@ void GaiaAuthFetcher::SetPendingFetch(bool pending_fetch) {
fetch_pending_ = pending_fetch;
}
+void GaiaAuthFetcher::SetLogoutHeaders(const std::string& headers) {
+ logout_headers_ = headers;
+}
+
void GaiaAuthFetcher::CancelRequest() {
fetcher_.reset();
fetch_pending_ = false;
@@ -629,7 +633,7 @@ void GaiaAuthFetcher::StartListAccounts() {
void GaiaAuthFetcher::StartLogOut() {
DCHECK(!fetch_pending_) << "Tried to fetch two things at once!";
- CreateAndStartGaiaFetcher(std::string(), std::string(), logout_gurl_,
+ CreateAndStartGaiaFetcher(std::string(), logout_headers_, logout_gurl_,
net::LOAD_NORMAL);
}
« no previous file with comments | « google_apis/gaia/gaia_auth_fetcher.h ('k') | ios/chrome/browser/signin/gaia_auth_fetcher_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698