Chromium Code Reviews| 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 28f30f1d2ffab1aa02322776bfcc0253688d930f..18cccf82514e699035fc0c24a4e18ac2f5af8871 100644 |
| --- a/components/signin/core/browser/gaia_cookie_manager_service.cc |
| +++ b/components/signin/core/browser/gaia_cookie_manager_service.cc |
| @@ -130,6 +130,7 @@ GaiaCookieManagerService::ExternalCcResultFetcher::GetExternalCcResult() { |
| } |
| void GaiaCookieManagerService::ExternalCcResultFetcher::Start() { |
| + DCHECK(!helper_->external_cc_result_fetched_); |
| m_external_cc_result_start_time_ = base::Time::Now(); |
| CleanupTransientState(); |
| @@ -195,6 +196,8 @@ void GaiaCookieManagerService::ExternalCcResultFetcher:: |
| void GaiaCookieManagerService::ExternalCcResultFetcher:: |
| OnGetCheckConnectionInfoError(const GoogleServiceAuthError& error) { |
| + CleanupTransientState(); |
| + |
|
Roger Tawa OOO till Jul 10th
2017/02/24 17:20:15
I would leave the call to CleanupTransientState()
msarda
2017/03/03 14:25:00
I guess it all depends on what we want the behavio
|
| if (++helper_->fetcher_retries_ < kMaxFetcherRetries && |
| error.IsTransientError()) { |
| helper_->fetcher_backoff_.InformOfRequest(false); |
| @@ -204,7 +207,6 @@ void GaiaCookieManagerService::ExternalCcResultFetcher:: |
| return; |
| } |
| - CleanupTransientState(); |
| GetCheckConnectionInfoCompleted(false); |
| } |