Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 5 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 base::TimeDelta time_to_check_connections = | 277 base::TimeDelta time_to_check_connections = |
| 278 base::Time::Now() - m_external_cc_result_start_time_; | 278 base::Time::Now() - m_external_cc_result_start_time_; |
| 279 signin_metrics::LogExternalCcResultFetches(succeeded, | 279 signin_metrics::LogExternalCcResultFetches(succeeded, |
| 280 time_to_check_connections); | 280 time_to_check_connections); |
| 281 | 281 |
| 282 helper_->external_cc_result_fetched_ = true; | 282 helper_->external_cc_result_fetched_ = true; |
| 283 // Since the ExternalCCResultFetcher is only Started in place of calling | 283 // Since the ExternalCCResultFetcher is only Started in place of calling |
| 284 // StartFetchingMergeSession, we can assume we need to call | 284 // StartFetchingMergeSession, we can assume we need to call |
| 285 // StartFetchingMergeSession. If this assumption becomes invalid, a Callback | 285 // StartFetchingMergeSession. If this assumption becomes invalid, a Callback |
| 286 // will need to be passed to Start() and Run() here. | 286 // will need to be passed to Start() and Run() here. |
| 287 helper_->StartFetchingMergeSession(); | 287 if (!helper_->uber_token_.empty()) |
| 288 helper_->StartFetchingMergeSession(); | |
|
Roger Tawa OOO till Jul 10th
2017/02/21 16:15:16
I wonder if you need to explicitly call OnMergeSes
msarda
2017/02/23 17:29:22
After you reply, I've debugged this more carefully
| |
| 288 } | 289 } |
| 289 | 290 |
| 290 GaiaCookieManagerService::GaiaCookieManagerService( | 291 GaiaCookieManagerService::GaiaCookieManagerService( |
| 291 OAuth2TokenService* token_service, | 292 OAuth2TokenService* token_service, |
| 292 const std::string& source, | 293 const std::string& source, |
| 293 SigninClient* signin_client) | 294 SigninClient* signin_client) |
| 294 : token_service_(token_service), | 295 : token_service_(token_service), |
| 295 signin_client_(signin_client), | 296 signin_client_(signin_client), |
| 296 external_cc_result_fetcher_(this), | 297 external_cc_result_fetcher_(this), |
| 297 fetcher_backoff_(&kBackoffPolicy), | 298 fetcher_backoff_(&kBackoffPolicy), |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 break; | 795 break; |
| 795 case GaiaCookieRequestType::LIST_ACCOUNTS: | 796 case GaiaCookieRequestType::LIST_ACCOUNTS: |
| 796 uber_token_fetcher_.reset(); | 797 uber_token_fetcher_.reset(); |
| 797 signin_client_->DelayNetworkCall( | 798 signin_client_->DelayNetworkCall( |
| 798 base::Bind(&GaiaCookieManagerService::StartFetchingListAccounts, | 799 base::Bind(&GaiaCookieManagerService::StartFetchingListAccounts, |
| 799 base::Unretained(this))); | 800 base::Unretained(this))); |
| 800 break; | 801 break; |
| 801 } | 802 } |
| 802 } | 803 } |
| 803 } | 804 } |
| OLD | NEW |