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

Unified Diff: extensions/browser/api/socket/tcp_socket.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « extensions/browser/api/socket/socket.cc ('k') | extensions/browser/api/socket/udp_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <>
« no previous file with comments | « extensions/browser/api/socket/socket.cc ('k') | extensions/browser/api/socket/udp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698