Chromium Code Reviews| Index: chrome/browser/profiles/profile_attributes_entry.cc |
| diff --git a/chrome/browser/profiles/profile_attributes_entry.cc b/chrome/browser/profiles/profile_attributes_entry.cc |
| index 8c9757615c933feaeb5279174789b98d6d7d6b2e..e2910bbfa36a62d2c8a22094f04bddfb3420bed6 100644 |
| --- a/chrome/browser/profiles/profile_attributes_entry.cc |
| +++ b/chrome/browser/profiles/profile_attributes_entry.cc |
| @@ -130,6 +130,22 @@ size_t ProfileAttributesEntry::GetAvatarIconIndex() const { |
| profile_index()); |
| } |
| +bool ProfileAttributesEntry::GetStatistic(const std::string& category, |
|
anthonyvd
2015/10/23 15:53:14
I think this (and the ProfileInfoCache implementat
lwchkg
2015/10/24 02:02:32
I see. It's okay here because everything else in t
|
| + int* out_value) const { |
| + return profile_info_cache_->GetStatisticOfProfileAtIndex( |
| + profile_index(), category, out_value); |
| +} |
| + |
| +std::map<std::string, int> ProfileAttributesEntry::GetAllStatistics() const { |
| + return profile_info_cache_->GetAllStatisticsOfProfileAtIndex(profile_index()); |
| +} |
| + |
| +scoped_ptr<base::DictionaryValue> |
| + ProfileAttributesEntry::GetAllStatisticsAsDictionaryValue() const { |
| + return profile_info_cache_->GetAllStatisticsOfProfileAtIndexAsDictionaryValue( |
| + profile_index()).Pass(); |
| +} |
| + |
| void ProfileAttributesEntry::SetName(const base::string16& name) { |
| profile_info_cache_->SetNameOfProfileAtIndex(profile_index(), name); |
| } |
| @@ -206,6 +222,12 @@ void ProfileAttributesEntry::SetAvatarIconIndex(size_t icon_index) { |
| profile_index(), icon_index); |
| } |
| +void ProfileAttributesEntry::SetStatistic(const std::string& category, |
| + int value) { |
| + profile_info_cache_->SetStatisticOfProfileAtIndex( |
| + profile_index(), category, value); |
| +} |
| + |
| void ProfileAttributesEntry::SetAuthInfo( |
| const std::string& gaia_id, const base::string16& user_name) { |
| profile_info_cache_->SetAuthInfoOfProfileAtIndex( |