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

Unified Diff: chrome/browser/extensions/signin/gaia_auth_extension_loader.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/signin/gaia_auth_extension_loader.h
diff --git a/chrome/browser/extensions/signin/gaia_auth_extension_loader.h b/chrome/browser/extensions/signin/gaia_auth_extension_loader.h
index 5d8c9ebf9ef13f74165bacede9675d51f74cbee8..e8f328ebc9207ca25ca4f574962d91aba1da6b53 100644
--- a/chrome/browser/extensions/signin/gaia_auth_extension_loader.h
+++ b/chrome/browser/extensions/signin/gaia_auth_extension_loader.h
@@ -8,14 +8,16 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace extensions {
// Manages and registers the gaia auth extension with the extension system.
class GaiaAuthExtensionLoader : public ProfileKeyedAPI {
public:
- explicit GaiaAuthExtensionLoader(Profile* profile);
+ explicit GaiaAuthExtensionLoader(content::BrowserContext* context);
virtual ~GaiaAuthExtensionLoader();
// Load the gaia auth extension if the extension is not loaded yet.
@@ -23,7 +25,7 @@ class GaiaAuthExtensionLoader : public ProfileKeyedAPI {
// Unload the gaia auth extension if no pending reference.
void UnloadIfNeeded();
- static GaiaAuthExtensionLoader* Get(Profile* profile);
+ static GaiaAuthExtensionLoader* Get(content::BrowserContext* context);
// ProfileKeyedAPI implementation.
static ProfileKeyedAPIFactory<GaiaAuthExtensionLoader>* GetFactoryInstance();
@@ -40,7 +42,7 @@ class GaiaAuthExtensionLoader : public ProfileKeyedAPI {
}
static const bool kServiceRedirectedInIncognito = true;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
int load_count_;
DISALLOW_COPY_AND_ASSIGN(GaiaAuthExtensionLoader);
« no previous file with comments | « chrome/browser/extensions/plugin_manager.cc ('k') | chrome/browser/extensions/signin/gaia_auth_extension_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698