Index: components/signin/core/browser/account_fetcher_service.h |
diff --git a/components/signin/core/browser/account_fetcher_service.h b/components/signin/core/browser/account_fetcher_service.h |
index a049b8d15ac633a814312eb26f3d9413791bf6b6..c8879d7dc95abaf5df450b353ed305db8bc91b19 100644 |
--- a/components/signin/core/browser/account_fetcher_service.h |
+++ b/components/signin/core/browser/account_fetcher_service.h |
@@ -5,8 +5,6 @@ |
#ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ |
#define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_FETCHER_SERVICE_H_ |
-#include <list> |
- |
#include "base/containers/scoped_ptr_hash_map.h" |
#include "base/threading/non_thread_safe.h" |
#include "base/timer/timer.h" |
@@ -50,10 +48,6 @@ class AccountFetcherService : public KeyedService, |
// KeyedService implementation |
void Shutdown() override; |
- // To be called after the Profile is fully initialized; permits network |
- // calls to be executed. |
- void EnableNetworkFetches(); |
- |
// Indicates if all user information has been fetched. If the result is false, |
// there are still unfininshed fetchers. |
virtual bool IsAllUserInfoFetched() const; |
@@ -67,6 +61,11 @@ class AccountFetcherService : public KeyedService, |
// Called by ChildAccountInfoFetcher. |
void SetIsChildAccount(const std::string& account_id, bool is_child_account); |
+ // OAuth2TokenService::Observer implementation. |
+ void OnRefreshTokenAvailable(const std::string& account_id) override; |
+ void OnRefreshTokenRevoked(const std::string& account_id) override; |
+ void OnRefreshTokensLoaded() override; |
+ |
private: |
friend class AccountInfoFetcher; |
friend class ChildAccountInfoFetcherImpl; |
@@ -102,17 +101,11 @@ class AccountFetcherService : public KeyedService, |
scoped_ptr<base::DictionaryValue> user_info); |
void OnUserInfoFetchFailure(const std::string& account_id); |
- // OAuth2TokenService::Observer implementation. |
- void OnRefreshTokenAvailable(const std::string& account_id) override; |
- void OnRefreshTokenRevoked(const std::string& account_id) override; |
- void OnRefreshTokensLoaded() override; |
- |
AccountTrackerService* account_tracker_service_; // Not owned. |
OAuth2TokenService* token_service_; // Not owned. |
SigninClient* signin_client_; // Not owned. |
invalidation::InvalidationService* invalidation_service_; // Not owned. |
bool network_fetches_enabled_; |
- std::list<std::string> pending_user_info_fetches_; |
base::Time last_updated_; |
base::OneShotTimer timer_; |
bool shutdown_called_; |