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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_windows_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/tabs/tabs_windows_api.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs_windows_api.cc b/chrome/browser/extensions/api/tabs/tabs_windows_api.cc
index 1bbd5bd27df4eb81a778dab0044a23ea89e21977..a955dd16467fb8102c7e45887abb9bd38e65cb47 100644
--- a/chrome/browser/extensions/api/tabs/tabs_windows_api.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_windows_api.cc
@@ -48,7 +48,7 @@ TabsWindowsAPI::~TabsWindowsAPI() {
// static
TabsWindowsAPI* TabsWindowsAPI::Get(content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<TabsWindowsAPI>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<TabsWindowsAPI>::Get(context);
}
TabsEventRouter* TabsWindowsAPI::tabs_event_router() {
@@ -70,10 +70,11 @@ void TabsWindowsAPI::Shutdown() {
this);
}
-static base::LazyInstance<ProfileKeyedAPIFactory<TabsWindowsAPI> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<TabsWindowsAPI> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
-ProfileKeyedAPIFactory<TabsWindowsAPI>* TabsWindowsAPI::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<TabsWindowsAPI>*
+TabsWindowsAPI::GetFactoryInstance() {
return g_factory.Pointer();
}
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_windows_api.h ('k') | chrome/browser/extensions/api/usb/usb_device_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698