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