Commit a75d3297 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Finish port of identity_get_auth_token_function.cc away from PO2TS

... where PO2TS stands for ProfileOAuth2TokenService.

This is is a follow up of [1], that left off this PO2TS call.

[1] https://chromium-review.googlesource.com/c/1370279

BUG=927258

Change-Id: I0a81b3863fb9aa33aebf5c60d13e2ce3ff66abf3
Reviewed-on: https://chromium-review.googlesource.com/c/1448135
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Commit-Queue: David Roger <droger@chromium.org>
Auto-Submit: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#627947}
parent 3d981f46
......@@ -19,12 +19,10 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/chrome_device_id_helper.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "chrome/common/extensions/api/identity.h"
#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_pref_names.h"
#include "content/public/common/service_manager_connection.h"
#include "extensions/common/extension_l10n_util.h"
......@@ -364,8 +362,8 @@ void IdentityGetAuthTokenFunction::StartMintTokenFlow(
#if !defined(OS_CHROMEOS)
// ChromeOS in kiosk mode may start the mint token flow without account.
DCHECK(!token_key_.account_id.empty());
DCHECK(ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile())
->RefreshTokenIsAvailable(token_key_.account_id));
DCHECK(IdentityManagerFactory::GetForProfile(GetProfile())
->HasAccountWithRefreshToken(token_key_.account_id));
#endif
mint_token_flow_type_ = type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment