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

Unified Diff: chrome/browser/extensions/api/push_messaging/push_messaging_api.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (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/push_messaging/push_messaging_api.h
diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_api.h b/chrome/browser/extensions/api/push_messaging/push_messaging_api.h
index 60c66a063e312c6edc6328ee81527138664387e9..632a572cdaa34c857437fd9a26e6e5af6e98f854 100644
--- a/chrome/browser/extensions/api/push_messaging/push_messaging_api.h
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_api.h
@@ -23,6 +23,10 @@
class Profile;
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class PushMessagingInvalidationMapper;
@@ -110,11 +114,11 @@ class PushMessagingGetChannelIdFunction
class PushMessagingAPI : public ProfileKeyedAPI,
public content::NotificationObserver {
public:
- explicit PushMessagingAPI(Profile* profile);
+ explicit PushMessagingAPI(content::BrowserContext* context);
virtual ~PushMessagingAPI();
// Convenience method to get the PushMessagingAPI for a profile.
- static PushMessagingAPI* Get(Profile* profile);
+ static PushMessagingAPI* Get(content::BrowserContext* context);
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698