#include "chrome/browser/ui/webui/profile_info_watcher.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/signin/public/base/signin_pref_names.h"
#include "components/signin/public/identity_manager/identity_manager.h"
ProfileInfoWatcher::ProfileInfoWatcher(Profile* profile,
base::RepeatingClosure callback)
: … { … }
ProfileInfoWatcher::~ProfileInfoWatcher() { … }
void ProfileInfoWatcher::OnProfileAuthInfoChanged(
const base::FilePath& profile_path) { … }
std::string ProfileInfoWatcher::GetAuthenticatedUsername() const { … }
signin::IdentityManager* ProfileInfoWatcher::GetIdentityManager() const { … }
void ProfileInfoWatcher::RunCallback() { … }