| Index: chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
|
| diff --git a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
|
| index 1ff059183fce51c751fff291edd5104aea9e73a5..ae105e66979fe0e4b9d2ab2ce3b721bdec4be398 100644
|
| --- a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
|
| +++ b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
|
| @@ -15,12 +15,13 @@ namespace api {
|
|
|
| using content::BrowserThread;
|
|
|
| -static base::LazyInstance<ProfileKeyedAPIFactory<UDPSocketEventDispatcher> >
|
| -g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +static base::LazyInstance<
|
| + BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher> > g_factory =
|
| + LAZY_INSTANCE_INITIALIZER;
|
|
|
| // static
|
| -ProfileKeyedAPIFactory<UDPSocketEventDispatcher>*
|
| - UDPSocketEventDispatcher::GetFactoryInstance() {
|
| +BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>*
|
| +UDPSocketEventDispatcher::GetFactoryInstance() {
|
| return g_factory.Pointer();
|
| }
|
|
|
| @@ -29,8 +30,7 @@ UDPSocketEventDispatcher* UDPSocketEventDispatcher::Get(
|
| content::BrowserContext* context) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| - return ProfileKeyedAPIFactory<UDPSocketEventDispatcher>::GetForProfile(
|
| - context);
|
| + return BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>::Get(context);
|
| }
|
|
|
| UDPSocketEventDispatcher::UDPSocketEventDispatcher(
|
|
|