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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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 6219d5b84fae7ce5cb0cd3b1e5f0f61140b9acca..8040c2ef1d387bad95aeac14b555bd44b99ed194 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -15,11 +15,11 @@
#include "base/threading/thread.h"
#include "chrome/browser/extensions/activity_log/activity_actions.h"
#include "chrome/browser/extensions/activity_log/activity_log_policy.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.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"
class Profile;
@@ -39,7 +39,7 @@ class InstallTracker;
// It writes to an ActivityDatabase on a separate thread to record the activity.
// Each profile has different extensions, so we keep a different database for
// each profile.
-class ActivityLog : public ProfileKeyedAPI,
+class ActivityLog : public BrowserContextKeyedAPI,
public ApiActivityMonitor,
public TabHelper::ScriptExecutionObserver,
public InstallObserver {
@@ -51,7 +51,7 @@ class ActivityLog : public ProfileKeyedAPI,
virtual void OnExtensionActivity(scoped_refptr<Action> activity) = 0;
};
- static ProfileKeyedAPIFactory<ActivityLog>* GetFactoryInstance();
+ static BrowserContextKeyedAPIFactory<ActivityLog>* GetFactoryInstance();
// ActivityLog is a BrowserContextKeyedService, so don't instantiate it with
// the constructor; use GetInstance instead.
@@ -119,7 +119,7 @@ class ActivityLog : public ProfileKeyedAPI,
private:
friend class ActivityLogTest;
- friend class ProfileKeyedAPIFactory<ActivityLog>;
+ friend class BrowserContextKeyedAPIFactory<ActivityLog>;
friend class RenderViewActivityLogTest;
explicit ActivityLog(content::BrowserContext* context);
@@ -156,7 +156,7 @@ class ActivityLog : public ProfileKeyedAPI,
void ChooseDatabasePolicy();
void SetDatabasePolicy(ActivityLogPolicy::PolicyType policy_type);
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() { return "ActivityLog"; }
static const bool kServiceRedirectedInIncognito = true;
static const bool kServiceIsCreatedWithBrowserContext = false;
@@ -212,7 +212,7 @@ class ActivityLog : public ProfileKeyedAPI,
};
template <>
-void ProfileKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies();
+void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies();
} // namespace extensions
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker.cc ('k') | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698