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

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

Issue 7321011: Multi-Profiles: Add delete profile command (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug code Created 9 years, 5 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 204cbaa4fa5b4a9cb161da390fede2f5f9b3cb0d..088388a6ac8d8fea42b8987db3ce042675b3ed65 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -152,6 +152,9 @@ class ProfileManager : public base::NonThreadSafe,
// about profiles without having to load them from disk.
ProfileInfoCache& GetProfileInfoCache();
+ // Schedules the profile at the given path to be deleted on shutdown.
+ void ScheduleProfileForDeletion(const FilePath& profile_dir);
+
protected:
// Does final initial actions.
virtual void DoFinalInit(Profile* profile);
@@ -215,6 +218,9 @@ class ProfileManager : public base::NonThreadSafe,
// Object to cache various information about profiles.
scoped_ptr<ProfileInfoCache> profile_info_cache_;
+ // Profiles that should be deleted on shutdown.
+ std::vector<FilePath> profiles_to_delete_;
Miranda Callahan 2011/07/07 17:43:02 Does this need to be made thread-safe?
sail 2011/07/07 18:00:19 It doesn't because it' only accessed from the UI t
+
DISALLOW_COPY_AND_ASSIGN(ProfileManager);
};

Powered by Google App Engine
This is Rietveld 408576698