#include "chrome/browser/extensions/api/identity/identity_get_profile_user_info_function.h"
#include "base/notreached.h"
#include "chrome/browser/extensions/api/identity/identity_constants.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/common/extensions/api/identity.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "content/public/browser/browser_context.h"
#include "extensions/common/extension.h"
#include "extensions/common/permissions/permissions_data.h"
namespace extensions {
namespace {
signin::ConsentLevel GetConsentLevelFromProfileDetails(
const std::optional<api::identity::ProfileDetails>& details) { … }
}
IdentityGetProfileUserInfoFunction::IdentityGetProfileUserInfoFunction() =
default;
IdentityGetProfileUserInfoFunction::~IdentityGetProfileUserInfoFunction() =
default;
ExtensionFunction::ResponseAction IdentityGetProfileUserInfoFunction::Run() { … }
}