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

Unified Diff: chrome/browser/extensions/api/identity/identity_api.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (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/identity/identity_api.h
diff --git a/chrome/browser/extensions/api/identity/identity_api.h b/chrome/browser/extensions/api/identity/identity_api.h
index 58adae66210b64cb572df25062a24562c94ab117..80cc01cb4ef4c658f63081ef3d8d5c9f961cb166 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 @@ class DeviceOAuth2TokenService;
}
#endif
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class GetAuthTokenFunctionTest;
@@ -256,7 +259,7 @@ class IdentityAPI : public ProfileKeyedAPI,
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 @@ class IdentityAPI : public ProfileKeyedAPI,
}
static const bool kServiceIsNULLWhileTesting = true;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
IdentityMintRequestQueue mint_queue_;
CachedTokens token_cache_;
AccountTracker account_tracker_;

Powered by Google App Engine
This is Rietveld 408576698