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

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

Issue 50293011: Improve ephemeral profiles clean up code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index a8674de09b363d2e8f32219077bfdf2b1189a989..1b8f1ac542df6affacb7fbae759efe2a1675d046 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -187,6 +187,11 @@ class ProfileManager : public base::NonThreadSafe,
void ScheduleProfileForDeletion(const base::FilePath& profile_dir,
const CreateCallback& callback);
+ // Called on start-up if there are any stale ephemeral profiles to be deleted.
+ // This can be the case if the browser has crashed and the clean-up code had
+ // no chance to run then.
+ static void CleanUpStaleProfiles(std::vector<base::FilePath> profiles);
jochen (gone - plz use gerrit) 2013/11/05 13:03:25 why not const ref? I think profile_paths would be
pastarmovj 2013/11/05 16:11:02 Done.
+
// Autoloads profiles if they are running background apps.
void AutoloadProfiles();

Powered by Google App Engine
This is Rietveld 408576698