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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 b934d97e3ee82d31ebf71258f2a37eb638ecac00..130f75775bd07e5169b1869790f56ea03c79381f 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -34,7 +34,7 @@ class Extension;
// A utility for tracing interesting activity for each extension.
// It writes to an ActivityDatabase on a separate thread to record the activity.
-class ActivityLog : public ProfileKeyedService,
+class ActivityLog : public BrowserContextKeyedService,
public TabHelper::ScriptExecutionObserver {
public:
enum Activity {
@@ -231,11 +231,11 @@ class ActivityLog : public ProfileKeyedService,
// Each profile has different extensions, so we keep a different database for
// each profile.
-class ActivityLogFactory : public ProfileKeyedServiceFactory {
+class ActivityLogFactory : public BrowserContextKeyedServiceFactory {
public:
static ActivityLog* GetForProfile(Profile* profile) {
return static_cast<ActivityLog*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
static ActivityLogFactory* GetInstance();
@@ -243,11 +243,12 @@ class ActivityLogFactory : public ProfileKeyedServiceFactory {
private:
friend struct DefaultSingletonTraits<ActivityLogFactory>;
ActivityLogFactory()
- : ProfileKeyedServiceFactory("ActivityLog",
- ProfileDependencyManager::GetInstance()) {}
+ : BrowserContextKeyedServiceFactory(
+ "ActivityLog",
+ BrowserContextDependencyManager::GetInstance()) {}
virtual ~ActivityLogFactory() {}
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(

Powered by Google App Engine
This is Rietveld 408576698