| 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..be7bce3acc151148e17a369f095f1eb68cad726c 100644
|
| --- a/chrome/browser/profiles/profile_attributes_entry.cc
|
| +++ b/chrome/browser/profiles/profile_attributes_entry.cc
|
| @@ -130,6 +130,21 @@ size_t ProfileAttributesEntry::GetAvatarIconIndex() const {
|
| profile_index());
|
| }
|
|
|
| +int ProfileAttributesEntry::GetStatistic(const std::string& category) const {
|
| + return profile_info_cache_->GetStatisticOfProfileAtIndex(
|
| + profile_index(), category);
|
| +}
|
| +
|
| +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 +221,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(
|
|
|