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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 461b8bf7758717ade4958a671426c01022f16ad1..44691bd9d0b9935ef03b2526d7098c9ecee47944 100644
--- a/chrome/browser/extensions/api/identity/identity_api.h
+++ b/chrome/browser/extensions/api/identity/identity_api.h
@@ -19,9 +19,9 @@
#include "chrome/browser/extensions/api/identity/identity_mint_queue.h"
#include "chrome/browser/extensions/api/identity/identity_signin_flow.h"
#include "chrome/browser/extensions/api/identity/web_auth_flow.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/signin/signin_global_error.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "google_apis/gaia/oauth2_mint_token_flow.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -245,7 +245,7 @@ class IdentityTokenCacheValue {
base::Time expiration_time_;
};
-class IdentityAPI : public ProfileKeyedAPI,
+class IdentityAPI : public BrowserContextKeyedAPI,
public AccountTracker::Observer {
public:
typedef std::map<ExtensionTokenKey, IdentityTokenCacheValue> CachedTokens;
@@ -269,9 +269,9 @@ class IdentityAPI : public ProfileKeyedAPI,
void ReportAuthError(const GoogleServiceAuthError& error);
GoogleServiceAuthError GetAuthStatusForTest() const;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
virtual void Shutdown() OVERRIDE;
- static ProfileKeyedAPIFactory<IdentityAPI>* GetFactoryInstance();
+ static BrowserContextKeyedAPIFactory<IdentityAPI>* GetFactoryInstance();
// AccountTracker::Observer implementation:
virtual void OnAccountAdded(const AccountIds& ids) OVERRIDE;
@@ -280,9 +280,9 @@ class IdentityAPI : public ProfileKeyedAPI,
OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<IdentityAPI>;
+ friend class BrowserContextKeyedAPIFactory<IdentityAPI>;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "IdentityAPI";
}
@@ -295,7 +295,7 @@ class IdentityAPI : public ProfileKeyedAPI,
};
template <>
-void ProfileKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies();
+void BrowserContextKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies();
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/i18n/i18n_api.h ('k') | chrome/browser/extensions/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698