Index: chrome/browser/extensions/api/identity/identity_api.cc |
diff --git a/chrome/browser/extensions/api/identity/identity_api.cc b/chrome/browser/extensions/api/identity/identity_api.cc |
index 5344466d99f03cc9bf2b3fbe493ab2f610a0e2f3..84dccad6dedc058a6a0a33a4f48701f92cfe6d10 100644 |
--- a/chrome/browser/extensions/api/identity/identity_api.cc |
+++ b/chrome/browser/extensions/api/identity/identity_api.cc |
@@ -355,7 +355,7 @@ bool IdentityGetAuthTokenFunction::RunAsync() { |
#if defined(OS_CHROMEOS) |
policy::BrowserPolicyConnectorChromeOS* connector = |
g_browser_process->platform_part()->browser_policy_connector_chromeos(); |
- if (chromeos::UserManager::Get()->IsLoggedInAsKioskApp() && |
+ if (chromeos::GetUserManager()->IsLoggedInAsKioskApp() && |
connector->IsEnterpriseManaged()) { |
StartMintTokenFlow(IdentityMintRequestQueue::MINT_TYPE_NONINTERACTIVE); |
return true; |
@@ -466,7 +466,7 @@ void IdentityGetAuthTokenFunction::StartMintToken( |
case IdentityTokenCacheValue::CACHE_STATUS_NOTFOUND: |
#if defined(OS_CHROMEOS) |
// Always force minting token for ChromeOS kiosk app. |
- if (chromeos::UserManager::Get()->IsLoggedInAsKioskApp()) { |
+ if (chromeos::GetUserManager()->IsLoggedInAsKioskApp()) { |
gaia_mint_token_mode_ = OAuth2MintTokenFlow::MODE_MINT_TOKEN_FORCE; |
policy::BrowserPolicyConnectorChromeOS* connector = |
g_browser_process->platform_part() |