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

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

Issue 7138002: Add profiles to wrench menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 6 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/app/generated_resources.grd ('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
===================================================================
--- chrome/browser/profiles/profile_manager.h (revision 88807)
+++ chrome/browser/profiles/profile_manager.h (working copy)
@@ -35,6 +35,8 @@
// If true, delete the observer after the profile has been created. Default
// is false.
virtual bool DeleteAfterCreation();
+
+ virtual ~ProfileManagerObserver() {}
};
class ProfileManager : public base::NonThreadSafe,
@@ -62,6 +64,12 @@
// otherwise it will create and manage it.
Profile* GetProfile(const FilePath& profile_dir);
+ // Multi-profile support.
+ size_t GetNumberOfProfiles();
+ string16 GetNameOfProfileAtIndex(size_t index);
+ FilePath GetFilePathOfProfileAtIndex(size_t index,
+ const FilePath& user_data_dir);
+
// Explicit asynchronous creation of the profile. |observer| is called
// when profile is created. If profile has already been created, observer
// is called immediately. Should be called on the UI thread.
@@ -173,6 +181,14 @@
// entry.
ProfileInfo* RegisterProfile(Profile* profile, bool created);
+ typedef std::pair<FilePath, string16> ProfilePathAndName;
+ typedef std::vector<ProfilePathAndName> ProfilePathAndNames;
+ ProfilePathAndNames GetSortedProfilesFromDirectoryMap();
+
+ static bool CompareProfilePathAndName(
+ const ProfileManager::ProfilePathAndName& pair1,
+ const ProfileManager::ProfilePathAndName& pair2);
+
NotificationRegistrar registrar_;
// Indicates that a user has logged in and that the profile specified
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698