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

Unified Diff: chrome/browser/extensions/api/idle/idle_manager_factory.h

Issue 826933003: Update idle extension API to use BrowserContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make BrowserContext members const Created 5 years, 11 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/idle/idle_manager_factory.h
diff --git a/chrome/browser/extensions/api/idle/idle_manager_factory.h b/chrome/browser/extensions/api/idle/idle_manager_factory.h
index b24843be4a8fd37cba76cfd4505fe113b1a9c306..6db02d3a5e1cfac900f12a8dd5b775a7de35312c 100644
--- a/chrome/browser/extensions/api/idle/idle_manager_factory.h
+++ b/chrome/browser/extensions/api/idle/idle_manager_factory.h
@@ -8,14 +8,16 @@
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class Profile;
+namespace content {
+class BrowserContext;
+} // namespace content
namespace extensions {
class IdleManager;
class IdleManagerFactory : public BrowserContextKeyedServiceFactory {
public:
- static IdleManager* GetForProfile(Profile* profile);
+ static IdleManager* GetForBrowserContext(content::BrowserContext* context);
static IdleManagerFactory* GetInstance();
@@ -27,7 +29,7 @@ class IdleManagerFactory : public BrowserContextKeyedServiceFactory {
// BrowserContextKeyedBaseFactory implementation.
KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
+ content::BrowserContext* context) const override;
content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override;

Powered by Google App Engine
This is Rietveld 408576698