Index: components/signin/core/browser/account_tracker_service.h |
diff --git a/components/signin/core/browser/account_tracker_service.h b/components/signin/core/browser/account_tracker_service.h |
index 2040e70d7195468a3310ecfa4652b3ece361f207..e6653ae7ecf60343c4e8ceb9b0f8739c3f944d2a 100644 |
--- a/components/signin/core/browser/account_tracker_service.h |
+++ b/components/signin/core/browser/account_tracker_service.h |
@@ -46,6 +46,9 @@ class AccountTrackerService : public KeyedService, |
// Value representing no hosted domain in the kProfileHostedDomain preference. |
static const char kNoHostedDomainFound[]; |
+ // Value representing no picture URL associated with an account. |
+ static const char kNoPictureURLFound[]; |
+ |
// Information about a specific account. |
struct AccountInfo { |
AccountInfo(); |
@@ -58,10 +61,11 @@ class AccountTrackerService : public KeyedService, |
std::string given_name; |
std::string hosted_domain; |
std::string locale; |
- // TODO(rogerta): eventually this structure will include other information |
- // about the account, like full name, profile picture URL, etc. |
+ std::string picture_url; |
+ // TODO(anthonyvd): Eventually this structure should contain the account |
+ // service flags. |
- bool IsValid(); |
+ bool IsValid() const; |
}; |
// Clients of AccountTrackerService can implement this interface and register |
@@ -124,6 +128,7 @@ class AccountTrackerService : public KeyedService, |
// value PickAccountIdForAccount() when given the same arguments. |
std::string SeedAccountInfo(const std::string& gaia, |
const std::string& email); |
+ void SeedAccountInfo(AccountInfo info); |
AccountIdMigrationState GetMigrationState(); |
static AccountIdMigrationState GetMigrationState(PrefService* pref_service); |