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

Unified Diff: chrome/browser/extensions/api/sockets_tcp/tcp_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/tcp_socket_event_dispatcher.cc
diff --git a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc
index 41361bb28514bd3ba03afa194f154743a4e83ef9..f9d4a4885253df532c3212173b64e705218ebec0 100644
--- a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc
+++ b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.cc
@@ -19,12 +19,13 @@ namespace api {
using content::BrowserThread;
-static base::LazyInstance<ProfileKeyedAPIFactory<TCPSocketEventDispatcher> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<
+ BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher> > g_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<TCPSocketEventDispatcher>*
- TCPSocketEventDispatcher::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>*
+TCPSocketEventDispatcher::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -33,8 +34,7 @@ TCPSocketEventDispatcher* TCPSocketEventDispatcher::Get(
content::BrowserContext* context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- return ProfileKeyedAPIFactory<TCPSocketEventDispatcher>::GetForProfile(
- context);
+ return BrowserContextKeyedAPIFactory<TCPSocketEventDispatcher>::Get(context);
}
TCPSocketEventDispatcher::TCPSocketEventDispatcher(

Powered by Google App Engine
This is Rietveld 408576698