Index: chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc |
diff --git a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc |
index 41361bb28514bd3ba03afa194f154743a4e83ef9..f9d4a4885253df532c3212173b64e705218ebec0 100644 |
--- a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc |
+++ b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc |
@@ -19,12 +19,13 @@ namespace api { |
using content::BrowserThread; |
-static base::LazyInstance<ProfileKeyedAPIFactory<TCPSocketEventDispatcher> > |
-g_factory = LAZY_INSTANCE_INITIALIZER; |
+static base::LazyInstance< |
+ BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher> > g_factory = |
+ LAZY_INSTANCE_INITIALIZER; |
// static |
-ProfileKeyedAPIFactory<TCPSocketEventDispatcher>* |
- TCPSocketEventDispatcher::GetFactoryInstance() { |
+BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>* |
+TCPSocketEventDispatcher::GetFactoryInstance() { |
return g_factory.Pointer(); |
} |
@@ -33,8 +34,7 @@ TCPSocketEventDispatcher* TCPSocketEventDispatcher::Get( |
content::BrowserContext* context) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- return ProfileKeyedAPIFactory<TCPSocketEventDispatcher>::GetForProfile( |
- context); |
+ return BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>::Get(context); |
} |
TCPSocketEventDispatcher::TCPSocketEventDispatcher( |