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

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

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.cc
diff --git a/chrome/browser/extensions/activity_log/activity_log.cc b/chrome/browser/extensions/activity_log/activity_log.cc
index e555258a00b6de6da38db07bd5797a0c0dc6e721..d959da735105def0c8b3d150d8e20ea6540f28c2 100644
--- a/chrome/browser/extensions/activity_log/activity_log.cc
+++ b/chrome/browser/extensions/activity_log/activity_log.cc
@@ -338,16 +338,16 @@ namespace extensions {
// SET THINGS UP. --------------------------------------------------------------
-static base::LazyInstance<ProfileKeyedAPIFactory<ActivityLog> > g_factory =
- LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<ActivityLog> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
-ProfileKeyedAPIFactory<ActivityLog>* ActivityLog::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<ActivityLog>* ActivityLog::GetFactoryInstance() {
return g_factory.Pointer();
}
// static
ActivityLog* ActivityLog::GetInstance(content::BrowserContext* context) {
- return ActivityLog::GetFactoryInstance()->GetForProfile(
+ return ActivityLog::GetFactoryInstance()->Get(
Profile::FromBrowserContext(context));
}
@@ -696,7 +696,7 @@ void ActivityLog::DeleteDatabase() {
}
template <>
-void ProfileKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies() {
+void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies() {
DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
DependsOn(InstallTrackerFactory::GetInstance());
}

Powered by Google App Engine
This is Rietveld 408576698