Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2341)

Unified Diff: chrome/browser/profiles/profile_info_cache.cc

Issue 2712883005: Sign out profile when local_state file has been changed. (Closed)
Patch Set: Merge from master Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698