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

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

Issue 1113333003: Don't create a new profile when cleaning up stale ephemeral profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: test Created 5 years, 7 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
Index: chrome/browser/profiles/profile_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index fb845009174153af7d18eb8adbb1451ed9dde39f..d3ee9b29df3e7f1346cfd944f6e1985f398b69e4 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -168,15 +168,13 @@ 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(
- const std::vector<base::FilePath>& profile_paths);
-
// Autoloads profiles if they are running background apps.
void AutoloadProfiles();
+ // Checks if any ephemeral profiles are left behind (e.g. because of a browser
+ // crash) and schedule them for deletion.
+ void CleanUpEphemeralProfiles();
+
// Initializes user prefs of |profile|. This includes profile name and
// avatar values.
void InitProfileUserPrefs(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698