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

Unified Diff: chrome/browser/profiles/profile_info_cache.h

Issue 1415223002: Add counts of User data to ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test, fixed a bug, and a few minor edits Created 5 years, 2 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: chrome/browser/profiles/profile_info_cache.h
diff --git a/chrome/browser/profiles/profile_info_cache.h b/chrome/browser/profiles/profile_info_cache.h
index 9aff678ba2eb62138e4c3c88da9de7ddc0d8dc41..bc48cd07213adfb1d6c870faca5a484e307601c5 100644
--- a/chrome/browser/profiles/profile_info_cache.h
+++ b/chrome/browser/profiles/profile_info_cache.h
@@ -105,6 +105,13 @@ class ProfileInfoCache : public ProfileInfoInterface,
size_t GetAvatarIconIndexOfProfileAtIndex(size_t index) const;
+ bool GetStatisticOfProfileAtIndex(size_t index, const std::string& category,
+ int* out_value) const;
+ std::map<std::string, int> GetAllStatisticsOfProfileAtIndex(size_t index)
+ const;
+ scoped_ptr<base::DictionaryValue>
+ GetAllStatisticsOfProfileAtIndexAsDictionaryValue(size_t index) const;
+
void SetProfileActiveTimeAtIndex(size_t index);
// Warning: This will re-sort profiles and thus may change indices!
void SetNameOfProfileAtIndex(size_t index, const base::string16& name);
@@ -146,6 +153,9 @@ class ProfileInfoCache : public ProfileInfoInterface,
// set of default icons.
size_t ChooseAvatarIconIndexForNewProfile() const;
+ void SetStatisticOfProfileAtIndex(size_t index, const std::string& category,
+ int value);
+
const base::FilePath& GetUserDataDir() const;
// Register cache related preferences in Local State.

Powered by Google App Engine
This is Rietveld 408576698