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

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

Issue 853743002: First pass at fixing guest browser cookies issue. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete the Profile Manager. Guest Profile doesn't write to autocomplete/history. Views still needs … Created 5 years, 10 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_manager.h ('k') | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698