| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index 08470f7c6475dd95747206f62946a9c91256a6b3..6a5c723773f4030910522be5061ddd83b5480f5a 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -603,6 +603,17 @@ base::FilePath ProfileManager::GetSystemProfilePath() {
|
| return system_path.Append(chrome::kSystemProfileDir);
|
| }
|
|
|
| +void ProfileManager::DeleteProfile(Profile* profile) {
|
| + DCHECK(profile->IsGuestSession());
|
| +
|
| + if (BrowserList::IsOffTheRecordSessionActiveForProfile(profile))
|
| + return;
|
| +
|
| + ProfilesInfoMap::iterator iter = profiles_info_.find(profile->GetPath());
|
| + DCHECK(iter != profiles_info_.end());
|
| + profiles_info_.erase(iter);
|
| +}
|
| +
|
| base::FilePath ProfileManager::GenerateNextProfileDirectoryPath() {
|
| PrefService* local_state = g_browser_process->local_state();
|
| DCHECK(local_state);
|
|
|