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

Unified Diff: chrome/browser/extensions/api/tab_capture/tab_capture_registry.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (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/tab_capture/tab_capture_registry.h
diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.h b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.h
index efaa37f63af2e00fde55eca7a6629c577f642958..eb0b434b304dab490a531c8cbdcf355f68f5647a 100644
--- a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.h
+++ b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.h
@@ -19,6 +19,10 @@
class Profile;
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
struct TabCaptureRequest;
@@ -33,7 +37,7 @@ class TabCaptureRegistry : public ProfileKeyedAPI,
typedef std::vector<std::pair<int, tab_capture::TabCaptureState> >
RegistryCaptureInfo;
- static TabCaptureRegistry* Get(Profile* profile);
+ static TabCaptureRegistry* Get(content::BrowserContext* context);
// Used by ProfileKeyedAPI.
static ProfileKeyedAPIFactory<TabCaptureRegistry>* GetFactoryInstance();
@@ -58,7 +62,7 @@ class TabCaptureRegistry : public ProfileKeyedAPI,
friend class ProfileKeyedAPIFactory<TabCaptureRegistry>;
friend class FullscreenObserver;
- explicit TabCaptureRegistry(Profile* profile);
+ explicit TabCaptureRegistry(content::BrowserContext* context);
virtual ~TabCaptureRegistry();
// Used by ProfileKeyedAPI.

Powered by Google App Engine
This is Rietveld 408576698