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

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

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_destroyer.cc ('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_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index c16b6df8736a59c25eccfc0b8a68ef5fd76339b6..2d8bbdf3355090b21562b37772de75020fd82d78 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -142,6 +142,13 @@ class ProfileManager : public base::NonThreadSafe,
// Returns the full path to be used for system profiles.
static base::FilePath GetSystemProfilePath();
+ // Deletes the Profile from memory, removes it from the ProfileInfoCache and
+ // from the ProfileManager.
+ // DANGER: Only call this for a Guest Profile. Anything else will likely
+ // explode and lead to insanity.
+ // Exercise for the reader: Solve insanity.
+ void DeleteProfile(Profile* profile);
+
// Get the path of the next profile directory and increment the internal
// count.
// Lack of side effects:
« no previous file with comments | « chrome/browser/profiles/profile_destroyer.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698