| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/account_fetcher_service.h" | 5 #include "components/signin/core/browser/account_fetcher_service.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "base/profiler/scoped_tracker.h" | 10 #include "base/profiler/scoped_tracker.h" |
| 11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 12 #include "build/build_config.h" |
| 12 #include "components/pref_registry/pref_registry_syncable.h" | 13 #include "components/pref_registry/pref_registry_syncable.h" |
| 13 #include "components/signin/core/browser/account_info_fetcher.h" | 14 #include "components/signin/core/browser/account_info_fetcher.h" |
| 14 #include "components/signin/core/browser/account_tracker_service.h" | 15 #include "components/signin/core/browser/account_tracker_service.h" |
| 15 #include "components/signin/core/browser/child_account_info_fetcher.h" | 16 #include "components/signin/core/browser/child_account_info_fetcher.h" |
| 16 #include "components/signin/core/browser/refresh_token_annotation_request.h" | 17 #include "components/signin/core/browser/refresh_token_annotation_request.h" |
| 17 #include "components/signin/core/browser/signin_client.h" | 18 #include "components/signin/core/browser/signin_client.h" |
| 18 #include "components/signin/core/common/signin_switches.h" | 19 #include "components/signin/core/common/signin_switches.h" |
| 19 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
| 20 | 21 |
| 21 namespace { | 22 namespace { |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 user_info_requests_.erase(account_id); | 332 user_info_requests_.erase(account_id); |
| 332 UpdateChildInfo(); | 333 UpdateChildInfo(); |
| 333 account_tracker_service_->StopTrackingAccount(account_id); | 334 account_tracker_service_->StopTrackingAccount(account_id); |
| 334 } | 335 } |
| 335 | 336 |
| 336 void AccountFetcherService::OnRefreshTokensLoaded() { | 337 void AccountFetcherService::OnRefreshTokensLoaded() { |
| 337 DCHECK(CalledOnValidThread()); | 338 DCHECK(CalledOnValidThread()); |
| 338 refresh_tokens_loaded_ = true; | 339 refresh_tokens_loaded_ = true; |
| 339 MaybeEnableNetworkFetches(); | 340 MaybeEnableNetworkFetches(); |
| 340 } | 341 } |
| OLD | NEW |