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

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

Issue 1091363002: Change ProfileDownloader to use AccountTrackerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 5 years, 7 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
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 4debf418915957c81202714f71b16365964d08f0..3df75f6c8c9181b347e58e3eda5418ca4c4b95bf 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,11 +61,10 @@ class AccountTrackerService : public KeyedService,
std::string given_name;
std::string hosted_domain;
std::string locale;
+ std::string picture_url;
std::vector<std::string> service_flags;
- // TODO(rogerta): eventually this structure will include other information
- // about the account, like full name, profile picture URL, etc.
- bool IsValid();
+ bool IsValid() const;
};
// Clients of AccountTrackerService can implement this interface and register
@@ -125,6 +127,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);
« no previous file with comments | « chrome/browser/signin/signin_manager_unittest.cc ('k') | components/signin/core/browser/account_tracker_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698