Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: components/signin/core/browser/account_fetcher_service.h

Issue 1380103004: Delay fetching account info until OnRefreshTokensLoaded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defensive checks Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/signin/core/browser/BUILD.gn ('k') | components/signin/core/browser/account_fetcher_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f0d6386afaf4f8b0384cb912ec8ba8669e919464..9f7dd1094bff5aa9c9c6e4a76a04bb6eba1a0c4a 100644
--- a/components/signin/core/browser/account_fetcher_service.h
+++ b/components/signin/core/browser/account_fetcher_service.h
@@ -9,12 +9,14 @@
#include <map>
#include "base/containers/scoped_ptr_hash_map.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/timer/timer.h"
#include "components/keyed_service/core/keyed_service.h"
#include "google_apis/gaia/oauth2_token_service.h"
class AccountInfoFetcher;
+class AccountSeedingTracker;
class AccountTrackerService;
class ChildAccountInfoFetcher;
class OAuth2TokenService;
@@ -68,6 +70,15 @@ class AccountFetcherService : public KeyedService,
// Called by ChildAccountInfoFetcher.
void SetIsChildAccount(const std::string& account_id, bool is_child_account);
+#if defined(OS_ANDROID)
knn 2015/10/05 14:11:45 Can be removed.
+ // Android specific methods for keeping track of partially seeded accounts.
+ // Android uses email whereas Chrome uses GAIA ID. This mapping needs to be
+ // seeded before the AccountFetcherService can do anything.
+ void OnAccountsSeeded();
+
+ bool AreAllAccountsSeeded();
+#endif
+
private:
friend class AccountInfoFetcher;
friend class ChildAccountInfoFetcherImpl;
@@ -128,6 +139,8 @@ class AccountFetcherService : public KeyedService,
base::ScopedPtrHashMap<std::string, scoped_ptr<RefreshTokenAnnotationRequest>>
refresh_token_annotation_requests_;
+ scoped_ptr<AccountSeedingTracker> account_seeding_tracker_;
+
DISALLOW_COPY_AND_ASSIGN(AccountFetcherService);
};
« no previous file with comments | « components/signin/core/browser/BUILD.gn ('k') | components/signin/core/browser/account_fetcher_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698