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..4b5c8a881d7fcd4c2e277c249aec3c3697b91aa8 100644 |
--- a/chrome/browser/profiles/profile_manager.h |
+++ b/chrome/browser/profiles/profile_manager.h |
@@ -110,6 +110,10 @@ class ProfileManager : public base::NonThreadSafe, |
// profile. |
base::FilePath GetLastUsedProfileDir(const base::FilePath& user_data_dir); |
+ // Get the name of the last used profile, or if that's undefined, the default |
+ // profile. |
+ std::string GetLastUsedProfileName(); |
+ |
// Get the Profiles which are currently open, i.e., have open browsers, or |
// were open the last time Chrome was running. The Profiles appear in the |
// order they were opened. The last used profile will be on the list, but its |
@@ -168,15 +172,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); |