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

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

Issue 1428973003: Utilize ProfileInfoCache to support data type counts in profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: user_pod_row.js done, statistics now saved when the last window of a profile is closed. Created 5 years, 1 month 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_statistics.h
diff --git a/chrome/browser/profiles/profile_statistics.h b/chrome/browser/profiles/profile_statistics.h
index 94c29739e710a5a053a1e85256aec35adb4ca522..442a9809e250efe8a7a3cbd9f7847b63581a5c4f 100644
--- a/chrome/browser/profiles/profile_statistics.h
+++ b/chrome/browser/profiles/profile_statistics.h
@@ -39,11 +39,16 @@ using ProfileStatisticsCallback = base::Callback<void(ProfileCategoryStats)>;
// This function collects statistical information about |profile| and returns
// the information via |callback|. Currently bookmarks, history, logins and
// preferences are counted. The callback function will probably be called more
-// than once so binding parameters with bind::Passed() is prohibited.
+// than once so binding parameters with bind::Passed() is prohibited. The
+// statistical information are also copied to ProfileInfoCache.
void GetProfileStatistics(Profile* profile,
const ProfileStatisticsCallback& callback,
base::CancelableTaskTracker* tracker);
+// This function collects statistical information about |profile| and sends the
+// information to ProfileInfoCache.
+void StoreProfileStatisticsToCache(Profile* profile);
+
} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_

Powered by Google App Engine
This is Rietveld 408576698