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

Unified Diff: chrome/browser/ui/webui/identity_internals_ui.cc

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/ui/webui/identity_internals_ui.cc
diff --git a/chrome/browser/ui/webui/identity_internals_ui.cc b/chrome/browser/ui/webui/identity_internals_ui.cc
index a5def4b6682298a4e9b007bb764876106750aa21..16607b15551a989805f9f83d21d6ad98b92cc2c2 100644
--- a/chrome/browser/ui/webui/identity_internals_ui.cc
+++ b/chrome/browser/ui/webui/identity_internals_ui.cc
@@ -141,9 +141,10 @@ IdentityInternalsUIMessageHandler::~IdentityInternalsUIMessageHandler() {}
void IdentityInternalsUIMessageHandler::OnTokenRevokerDone(
IdentityInternalsTokenRevoker* token_revoker) {
// Remove token from the cache.
- extensions::IdentityAPI::GetFactoryInstance()->GetForProfile(
- Profile::FromWebUI(web_ui()))->EraseCachedToken(
- token_revoker->extension_id(), token_revoker->access_token());
+ extensions::IdentityAPI::GetFactoryInstance()
+ ->Get(Profile::FromWebUI(web_ui()))
+ ->EraseCachedToken(token_revoker->extension_id(),
+ token_revoker->access_token());
// Update view about the token being removed.
base::ListValue result;
@@ -220,8 +221,9 @@ void IdentityInternalsUIMessageHandler::GetInfoForAllTokens(
const base::ListValue* args) {
base::ListValue results;
extensions::IdentityAPI::CachedTokens tokens =
- extensions::IdentityAPI::GetFactoryInstance()->GetForProfile(
- Profile::FromWebUI(web_ui()))->GetAllCachedTokens();
+ extensions::IdentityAPI::GetFactoryInstance()
+ ->Get(Profile::FromWebUI(web_ui()))
+ ->GetAllCachedTokens();
for (extensions::IdentityAPI::CachedTokens::const_iterator
iter = tokens.begin(); iter != tokens.end(); ++iter) {
results.Append(GetInfoForToken(iter->first, iter->second));
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api.cc ('k') | chrome/browser/ui/webui/identity_internals_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698