| Index: chrome/browser/profiles/profile_info_cache.cc
|
| diff --git a/chrome/browser/profiles/profile_info_cache.cc b/chrome/browser/profiles/profile_info_cache.cc
|
| index 7249a7d930f0b92c1b052883ef28a46d3a89d8f4..7707f2b9f4ce8b28f91a4989ee862a39734cd0a2 100644
|
| --- a/chrome/browser/profiles/profile_info_cache.cc
|
| +++ b/chrome/browser/profiles/profile_info_cache.cc
|
| @@ -792,10 +792,7 @@ void ProfileInfoCache::SetProfileSigninRequiredAtIndex(size_t index,
|
| info->SetBoolean(kSigninRequiredKey, value);
|
| // This takes ownership of |info|.
|
| SetInfoForProfileAtIndex(index, info.release());
|
| -
|
| - base::FilePath profile_path = GetPathOfProfileAtIndex(index);
|
| - for (auto& observer : observer_list_)
|
| - observer.OnProfileSigninRequiredChanged(profile_path);
|
| + NotifyIsSigninRequiredChanged(GetPathOfProfileAtIndex(index));
|
| }
|
|
|
| void ProfileInfoCache::SetProfileIsEphemeralAtIndex(size_t index, bool value) {
|
| @@ -890,6 +887,12 @@ void ProfileInfoCache::SetStatsSettingsOfProfileAtIndex(size_t index,
|
| SetInfoForProfileAtIndex(index, info.release());
|
| }
|
|
|
| +void ProfileInfoCache::NotifyIsSigninRequiredChanged(
|
| + const base::FilePath& profile_path) {
|
| + for (auto& observer : observer_list_)
|
| + observer.OnProfileSigninRequiredChanged(profile_path);
|
| +}
|
| +
|
| const base::FilePath& ProfileInfoCache::GetUserDataDir() const {
|
| return user_data_dir_;
|
| }
|
|
|