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

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

Issue 777993003: Add ProfileInfoCache::ProfileIsChild/IsLegacySupervisedAtIndex. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unicorn_upstream
Patch Set: Created 6 years 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
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 4a94d805dff2ad2712a170bdb35351a9d0b39e8e..f1be65da52804d981c62557c6619a6b18b7ded1c 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -653,7 +653,8 @@ void ProfileManager::ScheduleProfileForDeletion(
for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) {
base::FilePath cur_path = cache.GetPathOfProfileAtIndex(i);
// Make sure that this profile is not pending deletion.
- if (cur_path != profile_dir && !cache.ProfileIsSupervisedAtIndex(i) &&
+ if (cur_path != profile_dir &&
+ !cache.ProfileIsLegacySupervisedAtIndex(i) &&
!IsProfileMarkedForDeletion(cur_path)) {
last_non_supervised_profile_path = cur_path;
break;

Powered by Google App Engine
This is Rietveld 408576698