Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2).
Follows part 1: https://chromiumcodereview.appspot.com/171813010/
BUG=309909
Review URL: https://codereview.chromium.org/166053003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253187 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/api/identity/identity_api.h b/chrome/browser/extensions/api/identity/identity_api.h
index 58adae6..80cc01c 100644
--- a/chrome/browser/extensions/api/identity/identity_api.h
+++ b/chrome/browser/extensions/api/identity/identity_api.h
@@ -27,7 +27,6 @@
class GoogleServiceAuthError;
class MockGetAuthTokenFunction;
-class Profile;
#if defined(OS_CHROMEOS)
namespace chromeos {
@@ -35,6 +34,10 @@
}
#endif
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class GetAuthTokenFunctionTest;
@@ -256,7 +259,7 @@
public:
typedef std::map<ExtensionTokenKey, IdentityTokenCacheValue> CachedTokens;
- explicit IdentityAPI(Profile* profile);
+ explicit IdentityAPI(content::BrowserContext* context);
virtual ~IdentityAPI();
// Request serialization queue for getAuthToken.
@@ -293,7 +296,7 @@
}
static const bool kServiceIsNULLWhileTesting = true;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
IdentityMintRequestQueue mint_queue_;
CachedTokens token_cache_;
AccountTracker account_tracker_;