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

Unified Diff: chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (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.h
diff --git a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
index 0f6e9e8354073424463385016f503c876e78978b..63baf84d6cfdb527f3434581f6bfe9766534a301 100644
--- a/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
+++ b/chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h
@@ -22,7 +22,7 @@ class UDPSocketEventDispatcher
: public ProfileKeyedAPI,
public base::SupportsWeakPtr<UDPSocketEventDispatcher> {
public:
- explicit UDPSocketEventDispatcher(Profile* profile);
+ explicit UDPSocketEventDispatcher(content::BrowserContext* context);
virtual ~UDPSocketEventDispatcher();
// Socket is active, start receving from it.
@@ -35,7 +35,7 @@ class UDPSocketEventDispatcher
static ProfileKeyedAPIFactory<UDPSocketEventDispatcher>* GetFactoryInstance();
// Convenience method to get the SocketEventDispatcher for a profile.
- static UDPSocketEventDispatcher* Get(Profile* profile);
+ static UDPSocketEventDispatcher* Get(content::BrowserContext* context);
private:
typedef ApiResourceManager<ResumableUDPSocket>::ApiResourceData SocketData;

Powered by Google App Engine
This is Rietveld 408576698