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

Unified Diff: chrome/browser/extensions/api/sockets_tcp/tcp_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_tcp/tcp_socket_event_dispatcher.h
diff --git a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
index 21e5483e870cbf3ad1058bc6c1387441011811ec..573b8e19cdd8bee39b60e471b0061c02b7ee0d39 100644
--- a/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
+++ b/chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h
@@ -22,7 +22,7 @@ class TCPSocketEventDispatcher
: public ProfileKeyedAPI,
public base::SupportsWeakPtr<TCPSocketEventDispatcher> {
public:
- explicit TCPSocketEventDispatcher(Profile* profile);
+ explicit TCPSocketEventDispatcher(content::BrowserContext* context);
virtual ~TCPSocketEventDispatcher();
// Socket is active, start receving from it.
@@ -35,7 +35,7 @@ class TCPSocketEventDispatcher
static ProfileKeyedAPIFactory<TCPSocketEventDispatcher>* GetFactoryInstance();
// Convenience method to get the SocketEventDispatcher for a profile.
- static TCPSocketEventDispatcher* Get(Profile* profile);
+ static TCPSocketEventDispatcher* Get(content::BrowserContext* context);
private:
typedef ApiResourceManager<ResumableTCPSocket>::ApiResourceData SocketData;

Powered by Google App Engine
This is Rietveld 408576698