Index: chrome/browser/extensions/api/cast_channel/cast_channel_api.h |
diff --git a/chrome/browser/extensions/api/cast_channel/cast_channel_api.h b/chrome/browser/extensions/api/cast_channel/cast_channel_api.h |
index b7b60425ddd0a01a428ae37b29e336eb3ac85113..ac832b512f731c3e529ab47876818a7bc001962e 100644 |
--- a/chrome/browser/extensions/api/cast_channel/cast_channel_api.h |
+++ b/chrome/browser/extensions/api/cast_channel/cast_channel_api.h |
@@ -16,9 +16,12 @@ |
#include "extensions/browser/extension_function.h" |
class GURL; |
-class Profile; |
class CastChannelAPITest; |
+namespace content { |
+class BrowserContext; |
+} |
+ |
namespace extensions { |
namespace cast_channel = api::cast_channel; |
@@ -27,9 +30,9 @@ class CastChannelAPI : public ProfileKeyedAPI, |
public cast_channel::CastSocket::Delegate { |
public: |
- explicit CastChannelAPI(Profile* profile); |
+ explicit CastChannelAPI(content::BrowserContext* context); |
- static CastChannelAPI* Get(Profile* profile); |
+ static CastChannelAPI* Get(content::BrowserContext* context); |
// ProfileKeyedAPI implementation. |
static ProfileKeyedAPIFactory<CastChannelAPI>* GetFactoryInstance(); |
@@ -60,7 +63,7 @@ class CastChannelAPI : public ProfileKeyedAPI, |
return "CastChannelAPI"; |
} |
- Profile* const profile_; |
+ content::BrowserContext* const browser_context_; |
scoped_ptr<cast_channel::CastSocket> socket_for_test_; |
DISALLOW_COPY_AND_ASSIGN(CastChannelAPI); |