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

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

Issue 1130853003: Add service flags to the AccountTrackerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback. 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 2040e70d7195468a3310ecfa4652b3ece361f207..4debf418915957c81202714f71b16365964d08f0 100644
--- a/components/signin/core/browser/account_tracker_service.h
+++ b/components/signin/core/browser/account_tracker_service.h
@@ -58,6 +58,7 @@ class AccountTrackerService : public KeyedService,
std::string given_name;
std::string hosted_domain;
std::string locale;
+ 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.
@@ -130,15 +131,18 @@ class AccountTrackerService : public KeyedService,
protected:
// Available to be called in tests.
- void SetAccountStateFromUserInfo(const std::string& account_id,
- const base::DictionaryValue* user_info);
+ void SetAccountStateFromUserInfo(
+ const std::string& account_id,
+ const base::DictionaryValue* user_info,
+ const std::vector<std::string>* service_flags);
private:
friend class AccountInfoFetcher;
// These methods are called by fetchers.
void OnUserInfoFetchSuccess(AccountInfoFetcher* fetcher,
- const base::DictionaryValue* user_info);
+ const base::DictionaryValue* user_info,
+ const std::vector<std::string>* service_flags);
void OnUserInfoFetchFailure(AccountInfoFetcher* fetcher);
// Refreshes the AccountInfo associated with |account_id| if it's invalid or

Powered by Google App Engine
This is Rietveld 408576698