#include "chrome/browser/extensions/activity_log/activity_log_policy.h"
#include "chrome/browser/extensions/install_observer.h"
#include "chrome/browser/extensions/tab_helper.h"
-#include "chrome/common/extensions/dom_action_types.h"
#include "extensions/browser/api_activity_monitor.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
+#include "extensions/common/dom_action_types.h"
class Profile;
// Deletes the database associated with the policy that's currently in use.
void DeleteDatabase();
+ // If we're in a browser test, we need to pretend that the watchdog app is
+ // active.
+ void SetWatchdogAppActiveForTesting(bool active);
+
private:
friend class ActivityLogTest;
friend class BrowserContextKeyedAPIFactory<ActivityLog>;
- friend class RenderViewActivityLogTest;
explicit ActivityLog(content::BrowserContext* context);
virtual ~ActivityLog();
// Specifies if the Watchdog app is active (installed & enabled).
// If so, we need to log to the database and stream to the API.
bool IsWatchdogAppActive();
- // If we're in a browser test, we need to pretend that the watchdog app is
- // active.
- void SetWatchdogAppActive(bool active);
// Specifies if we need to record actions to the db. If so, we need to log to
// the database. This is true if the Watchdog app is active *or* the