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

Unified Diff: chrome/browser/extensions/api/sockets_udp/udp_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: 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_udp/udp_socket_event_dispatcher.cc
diff --git a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
index 1ff059183fce51c751fff291edd5104aea9e73a5..ae105e66979fe0e4b9d2ab2ce3b721bdec4be398 100644
--- a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
+++ b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.cc
@@ -15,12 +15,13 @@ namespace api {
using content::BrowserThread;
-static base::LazyInstance<ProfileKeyedAPIFactory<UDPSocketEventDispatcher> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<
+ BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher> > g_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<UDPSocketEventDispatcher>*
- UDPSocketEventDispatcher::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>*
+UDPSocketEventDispatcher::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -29,8 +30,7 @@ UDPSocketEventDispatcher* UDPSocketEventDispatcher::Get(
content::BrowserContext* context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- return ProfileKeyedAPIFactory<UDPSocketEventDispatcher>::GetForProfile(
- context);
+ return BrowserContextKeyedAPIFactory<UDPSocketEventDispatcher>::Get(context);
}
UDPSocketEventDispatcher::UDPSocketEventDispatcher(

Powered by Google App Engine
This is Rietveld 408576698