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

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

Issue 2089333002: [Extensions] Add renderer-side logic to short circuit activity logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Antony's Created 4 years, 6 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 76e927658d1764dbd66f62d9ba191f98789bd26c..1e98d2e6f8658174526f75f540c068940c4afe61 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -118,6 +118,8 @@ class ActivityLog : public BrowserContextKeyedAPI,
// Deletes the database associated with the policy that's currently in use.
void DeleteDatabase();
+ bool is_active() const { return is_active_; }
+
// If we're in a browser test, we need to pretend that the watchdog app is
// active.
void SetWatchdogAppActiveForTesting(bool active);
@@ -203,7 +205,10 @@ class ActivityLog : public BrowserContextKeyedAPI,
// extension IDs, this needs to be an int to count how many are installed.
int watchdog_apps_active_;
- // True if the activity log is currently active.
+ // True if the activity log is currently active, meaning that the user has
+ // either added the commandline switch or has loaded a compatible extension.
+ // While inactive, the activity log will not store any actions for performance
+ // reasons.
bool is_active_;
content::NotificationRegistrar registrar_;
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | extensions/renderer/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698