This source file includes following definitions.
- IsProfileAssociatedWithGaiaAccount
#include "chrome/browser/chromeos/profiles/profile_util.h"
#include "base/files/file_path.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chromeos/login/login_state.h"
namespace chromeos {
bool IsProfileAssociatedWithGaiaAccount(Profile* profile) {
if (!chromeos::LoginState::IsInitialized())
return false;
if (!chromeos::LoginState::Get()->IsUserGaiaAuthenticated())
return false;
if (profile->IsOffTheRecord())
return false;
if (profile->GetPath() == ProfileHelper::GetSigninProfileDir())
return false;
return true;
}
}