Chromium Code Reviews| Index: chrome/browser/profiles/profile_attributes_entry.h |
| diff --git a/chrome/browser/profiles/profile_attributes_entry.h b/chrome/browser/profiles/profile_attributes_entry.h |
| index 898557792594d675337a446ae23b823c990f8b63..524f7ca5cb52172571a48aabd0e1307641bcce71 100644 |
| --- a/chrome/browser/profiles/profile_attributes_entry.h |
| +++ b/chrome/browser/profiles/profile_attributes_entry.h |
| @@ -10,6 +10,7 @@ |
| #include "base/files/file_path.h" |
| #include "base/strings/string16.h" |
| #include "base/time/time.h" |
| +#include "base/values.h" |
| namespace gfx { |
| class Image; |
| @@ -83,6 +84,11 @@ class ProfileAttributesEntry { |
| bool IsAuthError() const; |
| // Returns the index of the default icon used by the profile. |
| size_t GetAvatarIconIndex() const; |
| + // Get the statistic of a given |category| of the profile in |out_value| if |
| + // the statistic of the |category| exists. Returns true if succeed. |
|
Mike Lerman
2015/11/10 15:31:18
last sentence isn't grammatically correct. "Return
|
| + bool GetStatistic(const std::string& category, int* out_value) const; |
| + // Returns all the statistics of the profile. |
| + std::map<std::string, int> GetAllStatistics() const; |
|
Mike Lerman
2015/11/10 15:31:18
I thought the ProfileInfoCache wasn't going to ret
|
| void SetName(const base::string16& name); |
| void SetShortcutName(const base::string16& name); |
| @@ -101,6 +107,7 @@ class ProfileAttributesEntry { |
| void SetIsUsingDefaultAvatar(bool value); |
| void SetIsAuthError(bool value); |
| void SetAvatarIconIndex(size_t icon_index); |
| + void SetStatistic(const std::string& category, int value); |
| void SetAuthInfo(const std::string& gaia_id, |
| const base::string16& user_name); |