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

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

Issue 826933003: Update idle extension API to use BrowserContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.h
diff --git a/chrome/browser/extensions/api/idle/idle_manager.h b/chrome/browser/extensions/api/idle/idle_manager.h
index a5a2bfc2d771687eea8cd52985dd4adb784bb60f..dc0e243519e96912b5f6acbb237afbf76b9e6c61 100644
--- a/chrome/browser/extensions/api/idle/idle_manager.h
+++ b/chrome/browser/extensions/api/idle/idle_manager.h
@@ -23,7 +23,9 @@ namespace base {
class StringValue;
} // namespace base
-class Profile;
+namespace content {
+class BrowserContext;
+} // namespace content
namespace extensions {
class ExtensionRegistry;
@@ -68,7 +70,7 @@ class IdleManager : public ExtensionRegistryObserver,
DISALLOW_COPY_AND_ASSIGN(EventDelegate);
};
- explicit IdleManager(Profile* profile);
+ explicit IdleManager(content::BrowserContext* context);
~IdleManager() override;
void Init();
@@ -119,7 +121,7 @@ class IdleManager : public ExtensionRegistryObserver,
void UpdateIdleState();
void UpdateIdleStateCallback(int idle_time);
- Profile* profile_;
+ content::BrowserContext* context_;
dcheng 2015/01/06 18:49:05 While you're changing this, mind making it content
Daniel Erat 2015/01/06 18:52:09 Done.
IdleState last_state_;
MonitorMap monitors_;

Powered by Google App Engine
This is Rietveld 408576698