Index: chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h |
diff --git a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h |
index 12f3fb62ac50f63a444f9bd9d8d7263bddac6e57..013a94cbd29ff931f59348aa8e3a87ec00f7ca31 100644 |
--- a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h |
+++ b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h |
@@ -23,7 +23,7 @@ namespace api { |
// Dispatch events related to "sockets.tcp" sockets from callback on native |
// socket instances. There is one instance per profile. |
class TCPSocketEventDispatcher |
- : public ProfileKeyedAPI, |
+ : public BrowserContextKeyedAPI, |
public base::SupportsWeakPtr<TCPSocketEventDispatcher> { |
public: |
explicit TCPSocketEventDispatcher(content::BrowserContext* context); |
@@ -35,16 +35,17 @@ class TCPSocketEventDispatcher |
// Socket is active again, start receiving data from it. |
void OnSocketResume(const std::string& extension_id, int socket_id); |
- // ProfileKeyedAPI implementation. |
- static ProfileKeyedAPIFactory<TCPSocketEventDispatcher>* GetFactoryInstance(); |
+ // BrowserContextKeyedAPI implementation. |
+ static BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>* |
+ GetFactoryInstance(); |
// Convenience method to get the SocketEventDispatcher for a profile. |
static TCPSocketEventDispatcher* Get(content::BrowserContext* context); |
private: |
typedef ApiResourceManager<ResumableTCPSocket>::ApiResourceData SocketData; |
- friend class ProfileKeyedAPIFactory<TCPSocketEventDispatcher>; |
- // ProfileKeyedAPI implementation. |
+ friend class BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>; |
+ // BrowserContextKeyedAPI implementation. |
static const char* service_name() { |
return "TCPSocketEventDispatcher"; |
} |