Index: chrome/browser/profiles/profile_manager.h |
=================================================================== |
--- chrome/browser/profiles/profile_manager.h (revision 88807) |
+++ chrome/browser/profiles/profile_manager.h (working copy) |
@@ -62,6 +62,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); |
sky
2011/06/13 23:15:15
const string16&
sail
2011/06/13 23:26:12
Hm.. in this case the name of the profile is store
sky
2011/06/13 23:59:39
2011/06/13 23:26:12, sail wrote:
|
+ 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 +179,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 |