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

Unified Diff: chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.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
Index: chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc
diff --git a/chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc b/chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc
index 01404036383b2e081e271179bdc4b61d13dc9ee9..924d99e538b955255fcaad474b982f999636f670 100644
--- a/chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc
+++ b/chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc
@@ -15,13 +15,13 @@ namespace api {
using content::BrowserThread;
-static
- base::LazyInstance<ProfileKeyedAPIFactory<TCPServerSocketEventDispatcher> >
- g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<
+ BrowserContextKeyedAPIFactory<TCPServerSocketEventDispatcher> > g_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<TCPServerSocketEventDispatcher>*
- TCPServerSocketEventDispatcher::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<TCPServerSocketEventDispatcher>*
+TCPServerSocketEventDispatcher::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -30,7 +30,7 @@ TCPServerSocketEventDispatcher* TCPServerSocketEventDispatcher::Get(
content::BrowserContext* context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- return ProfileKeyedAPIFactory<TCPServerSocketEventDispatcher>::GetForProfile(
+ return BrowserContextKeyedAPIFactory<TCPServerSocketEventDispatcher>::Get(
context);
}

Powered by Google App Engine
This is Rietveld 408576698