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

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.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/omnibox/omnibox_api.cc
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.cc b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
index dc098abc70363ed4f630983b0fa0d8112e71064e..082f96bf54e9cd5af39ded7cc9ef7f65f255a2f2 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.cc
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
@@ -204,17 +204,17 @@ void OmniboxAPI::Shutdown() {
OmniboxAPI::~OmniboxAPI() {
}
-static base::LazyInstance<ProfileKeyedAPIFactory<OmniboxAPI> >
+static base::LazyInstance<BrowserContextKeyedAPIFactory<OmniboxAPI> >
g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<OmniboxAPI>* OmniboxAPI::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<OmniboxAPI>* OmniboxAPI::GetFactoryInstance() {
return g_factory.Pointer();
}
// static
OmniboxAPI* OmniboxAPI::Get(content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<OmniboxAPI>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<OmniboxAPI>::Get(context);
}
void OmniboxAPI::Observe(int type,
@@ -279,7 +279,7 @@ void OmniboxAPI::OnTemplateURLsLoaded() {
}
template <>
-void ProfileKeyedAPIFactory<OmniboxAPI>::DeclareFactoryDependencies() {
+void BrowserContextKeyedAPIFactory<OmniboxAPI>::DeclareFactoryDependencies() {
DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
DependsOn(ExtensionPrefsFactory::GetInstance());
DependsOn(TemplateURLServiceFactory::GetInstance());

Powered by Google App Engine
This is Rietveld 408576698