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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_windows_api.h

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.h
diff --git a/chrome/browser/extensions/api/tabs/tabs_windows_api.h b/chrome/browser/extensions/api/tabs/tabs_windows_api.h
index d65b4eef0f5214c5155690f94aa5e0b0f3a6fa29..a5d25b2cddc967982d4fe70089531dcdea0a1047 100644
--- a/chrome/browser/extensions/api/tabs/tabs_windows_api.h
+++ b/chrome/browser/extensions/api/tabs/tabs_windows_api.h
@@ -6,15 +6,16 @@
#define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_WINDOWS_API_H_
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
namespace extensions {
class TabsEventRouter;
class WindowsEventRouter;
-class TabsWindowsAPI : public ProfileKeyedAPI, public EventRouter::Observer {
+class TabsWindowsAPI : public BrowserContextKeyedAPI,
+ public EventRouter::Observer {
public:
explicit TabsWindowsAPI(content::BrowserContext* context);
virtual ~TabsWindowsAPI();
@@ -28,19 +29,19 @@ class TabsWindowsAPI : public ProfileKeyedAPI, public EventRouter::Observer {
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<TabsWindowsAPI>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<TabsWindowsAPI>* GetFactoryInstance();
// EventRouter::Observer implementation.
virtual void OnListenerAdded(const extensions::EventListenerInfo& details)
OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<TabsWindowsAPI>;
+ friend class BrowserContextKeyedAPIFactory<TabsWindowsAPI>;
content::BrowserContext* browser_context_;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "TabsWindowsAPI";
}

Powered by Google App Engine
This is Rietveld 408576698