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

Unified Diff: chrome/browser/extensions/api/cast_channel/cast_channel_api.h

Issue 171813010: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context_ 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/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);

Powered by Google App Engine
This is Rietveld 408576698