#include "chrome/browser/ui/passwords/account_storage_auth_helper.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/reauth_result.h"
#include "chrome/browser/signin/signin_ui_util.h"
#include "components/password_manager/core/browser/features/password_manager_features_util.h"
#include "components/password_manager/core/browser/password_feature_manager.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "google_apis/gaia/core_account_id.h"
namespace {
ReauthSucceeded;
}
AccountStorageAuthHelper::AccountStorageAuthHelper(
Profile* profile,
signin::IdentityManager* identity_manager,
password_manager::PasswordFeatureManager* password_feature_manager,
base::RepeatingCallback<SigninViewController*()>
signin_view_controller_getter)
: … { … }
AccountStorageAuthHelper::~AccountStorageAuthHelper() = default;
void AccountStorageAuthHelper::TriggerOptInReauth(
signin_metrics::ReauthAccessPoint access_point,
base::OnceCallback<void(ReauthSucceeded)> reauth_callback) { … }
void AccountStorageAuthHelper::TriggerSignIn(
signin_metrics::AccessPoint access_point) { … }
void AccountStorageAuthHelper::OnOptInReauthCompleted(
base::OnceCallback<void(ReauthSucceeded)> reauth_callback,
signin::ReauthResult result) { … }