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

Unified Diff: chrome/browser/extensions/activity_log/fullstream_ui_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/fullstream_ui_policy.h
diff --git a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
index b7b137c7c45dafd87a15138901a3e92751d35069..a0d0b9a08e201087557cdbd05e8e02102c555d96 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
@@ -43,6 +43,9 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
// Clean the URL data stored for this policy.
virtual void RemoveURLs(const std::vector<GURL>& restrict_urls) 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;
@@ -74,6 +77,10 @@ class FullStreamUIPolicy : 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; this must only run on the database
// thread.
void DoDeleteDatabase();

Powered by Google App Engine
This is Rietveld 408576698