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

Unified Diff: chrome/browser/extensions/activity_log/counting_policy.h

Issue 23907004: [Activity log] Make database writes in counting policy more robust (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update comments Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/counting_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_log/counting_policy.h
diff --git a/chrome/browser/extensions/activity_log/counting_policy.h b/chrome/browser/extensions/activity_log/counting_policy.h
index ec8a2e508bbfbfd30bf4b9aad2547f4bbe914149..aba48d2e2bbd24a3e5b6aefb6af7625483043372 100644
--- a/chrome/browser/extensions/activity_log/counting_policy.h
+++ b/chrome/browser/extensions/activity_log/counting_policy.h
@@ -14,7 +14,12 @@
namespace extensions {
-// A policy for logging the stream of actions, but without arguments.
+// A policy for logging the stream of actions, but with most arguments stripped
+// out (to improve privacy and reduce database size) and with multiple
+// identical rows combined together using a count column to track the total
+// number of repetitions. Identical rows within the same day are merged, but
+// actions on separate days are kept distinct. Data is kept for up to a few
+// days then deleted.
class CountingPolicy : public ActivityLogDatabasePolicy {
public:
explicit CountingPolicy(Profile* profile);
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/counting_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698