| Index: extensions/browser/api/socket/tcp_socket.cc
|
| diff --git a/extensions/browser/api/socket/tcp_socket.cc b/extensions/browser/api/socket/tcp_socket.cc
|
| index 8feed60c831645f1511cbe06a57315e97ba24a8f..4b31116fc0fd8f6a457f26dacf703cbaf28bd8fc 100644
|
| --- a/extensions/browser/api/socket/tcp_socket.cc
|
| +++ b/extensions/browser/api/socket/tcp_socket.cc
|
| @@ -23,9 +23,9 @@ const char kTCPSocketTypeInvalidError[] =
|
| "Cannot call both connect and listen on the same socket.";
|
| const char kSocketListenError[] = "Could not listen on the specified port.";
|
|
|
| -static base::LazyInstance<
|
| - BrowserContextKeyedAPIFactory<ApiResourceManager<ResumableTCPSocket> > >
|
| - g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +static base::LazyInstance<BrowserContextKeyedAPIFactory<
|
| + ApiResourceManager<ResumableTCPSocket>>>::DestructorAtExit g_factory =
|
| + LAZY_INSTANCE_INITIALIZER;
|
|
|
| // static
|
| template <>
|
| @@ -35,8 +35,8 @@ ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance() {
|
| }
|
|
|
| static base::LazyInstance<BrowserContextKeyedAPIFactory<
|
| - ApiResourceManager<ResumableTCPServerSocket> > > g_server_factory =
|
| - LAZY_INSTANCE_INITIALIZER;
|
| + ApiResourceManager<ResumableTCPServerSocket>>>::DestructorAtExit
|
| + g_server_factory = LAZY_INSTANCE_INITIALIZER;
|
|
|
| // static
|
| template <>
|
|
|