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

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

Issue 23983014: [Activity Log] when extension is uninstalled, delete data about it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed bug in test 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
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 3baa41a102dc1fd26e75b6f8b622babe9e3775c0..523bb47f16f320abf163dbcae8751fdf25595b2e 100644
--- a/chrome/browser/extensions/activity_log/counting_policy.h
+++ b/chrome/browser/extensions/activity_log/counting_policy.h
@@ -48,6 +48,9 @@ class CountingPolicy : public ActivityLogDatabasePolicy {
// Clean the URL data stored for this policy.
virtual void RemoveURLs(const std::vector<GURL>&) OVERRIDE;
+ // Clean the data related to this extension for this policy.
+ virtual void RemoveExtensionData(const std::string& extension_id) OVERRIDE;
+
// Delete everything in the database.
virtual void DeleteDatabase() OVERRIDE;
@@ -89,6 +92,10 @@ class CountingPolicy : public ActivityLogDatabasePolicy {
// thread.
void DoRemoveURLs(const std::vector<GURL>& restrict_urls);
+ // The implementation of RemoveExtensionData; this must only run on the
+ // database thread.
+ void DoRemoveExtensionData(const std::string& extension_id);
+
// The implementation of DeleteDatabase; called on the database thread.
void DoDeleteDatabase();

Powered by Google App Engine
This is Rietveld 408576698