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

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

Issue 18660004: Extension activity log database refactoring (step 1) (Closed) Base URL: http://git.chromium.org/chromium/src.git@incognito-tests
Patch Set: Delegate renaming and comment cleanup Created 7 years, 5 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/activity_log.h
diff --git a/chrome/browser/extensions/activity_log/activity_log.h b/chrome/browser/extensions/activity_log/activity_log.h
index cef16ad63f9d6c839acc3f741548312f624c4abb..25691bf4b2eb331352e486e64fa7d4c12f88df8f 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -185,7 +185,10 @@ class ActivityLog : public BrowserContextKeyedService,
scoped_refptr<ObserverList> observers_;
// The policy object takes care of data summarization, compression, and
- // logging
+ // logging. The policy object is owned by the ActivityLog, but this cannot
+ // be a scoped_ptr since some cleanup work must happen on the database
+ // thread. Calling policy_->Close() will free the object; see the comments
+ // on the ActivityDatabase class for full details.
extensions::ActivityLogPolicy* policy_;
// TODO(dbabic,felt) change this into a list of policy types later.

Powered by Google App Engine
This is Rietveld 408576698