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..abe00f7322cf833d1f83f44f19db7401ee9ee351 100644 |
--- a/chrome/browser/profiles/profile_attributes_entry.cc |
+++ b/chrome/browser/profiles/profile_attributes_entry.cc |
@@ -130,6 +130,16 @@ size_t ProfileAttributesEntry::GetAvatarIconIndex() const { |
profile_index()); |
} |
+bool ProfileAttributesEntry::GetStatistic(const std::string& category, |
+ 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()); |
+} |
+ |
void ProfileAttributesEntry::SetName(const base::string16& name) { |
profile_info_cache_->SetNameOfProfileAtIndex(profile_index(), name); |
} |
@@ -206,6 +216,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( |