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

Unified Diff: chrome/browser/extensions/api/storage/settings_frontend.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/api/storage/settings_frontend.cc
diff --git a/chrome/browser/extensions/api/storage/settings_frontend.cc b/chrome/browser/extensions/api/storage/settings_frontend.cc
index f00a7f64aa60709224452e459ffecf59112ce5ce..a9999c462c93e015c116c7f59087d0509b2aaf40 100644
--- a/chrome/browser/extensions/api/storage/settings_frontend.cc
+++ b/chrome/browser/extensions/api/storage/settings_frontend.cc
@@ -34,7 +34,7 @@ namespace storage = api::storage;
namespace {
-base::LazyInstance<ProfileKeyedAPIFactory<SettingsFrontend> > g_factory =
+base::LazyInstance<BrowserContextKeyedAPIFactory<SettingsFrontend> > g_factory =
LAZY_INSTANCE_INITIALIZER;
// Settings change Observer which forwards changes on to the extension
@@ -87,7 +87,7 @@ SettingsStorageQuotaEnforcer::Limits GetSyncLimits() {
// static
SettingsFrontend* SettingsFrontend::Get(BrowserContext* context) {
- return ProfileKeyedAPIFactory<SettingsFrontend>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<SettingsFrontend>::Get(context);
}
// static
@@ -218,10 +218,10 @@ void SettingsFrontend::DisableStorageForTesting(
}
}
-// ProfileKeyedAPI implementation.
+// BrowserContextKeyedAPI implementation.
// static
-ProfileKeyedAPIFactory<SettingsFrontend>*
+BrowserContextKeyedAPIFactory<SettingsFrontend>*
SettingsFrontend::GetFactoryInstance() {
return g_factory.Pointer();
}

Powered by Google App Engine
This is Rietveld 408576698