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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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 | « chrome/browser/extensions/api/socket/socket.cc ('k') | chrome/browser/extensions/api/socket/udp_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/socket/tcp_socket.cc
diff --git a/chrome/browser/extensions/api/socket/tcp_socket.cc b/chrome/browser/extensions/api/socket/tcp_socket.cc
index 057a43a8fdc3e890a3c9c6bff69231bbf156e64b..9a6bd358e2e02478a365cd750563108d70fb3aab 100644
--- a/chrome/browser/extensions/api/socket/tcp_socket.cc
+++ b/chrome/browser/extensions/api/socket/tcp_socket.cc
@@ -17,24 +17,24 @@ 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<ProfileKeyedAPIFactory<
- ApiResourceManager<ResumableTCPSocket> > >
- g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<
+ BrowserContextKeyedAPIFactory<ApiResourceManager<ResumableTCPSocket> > >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
// static
template <>
-ProfileKeyedAPIFactory<ApiResourceManager<ResumableTCPSocket> >*
+BrowserContextKeyedAPIFactory<ApiResourceManager<ResumableTCPSocket> >*
ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance() {
return g_factory.Pointer();
}
-static base::LazyInstance<ProfileKeyedAPIFactory<
- ApiResourceManager<ResumableTCPServerSocket> > >
- g_server_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<
+ ApiResourceManager<ResumableTCPServerSocket> > > g_server_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
template <>
-ProfileKeyedAPIFactory<ApiResourceManager<ResumableTCPServerSocket> >*
+BrowserContextKeyedAPIFactory<ApiResourceManager<ResumableTCPServerSocket> >*
ApiResourceManager<ResumableTCPServerSocket>::GetFactoryInstance() {
return g_server_factory.Pointer();
}
« no previous file with comments | « chrome/browser/extensions/api/socket/socket.cc ('k') | chrome/browser/extensions/api/socket/udp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698