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

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: Opening windows 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
Index: chrome/browser/profiles/profile_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index d06f700cdd8d1a09658ada2c1643f98a4a2ee655..fe9f8b6fa7a08d8c548fe5cd8b6d82028e62208d 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -62,6 +62,11 @@ class ProfileManager : public base::NonThreadSafe,
// 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, FilePath user_data_dir);
sky 2011/06/10 16:24:14 const FilePath&
sail 2011/06/11 01:27:37 Done.
+
// 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 +178,9 @@ class ProfileManager : public base::NonThreadSafe,
// entry.
ProfileInfo* RegisterProfile(Profile* profile, bool created);
+ std::vector<std::pair<FilePath, string16> >
sky 2011/06/10 16:24:14 How about a typedef. And document what the string1
sail 2011/06/11 01:27:37 Done.
+ GetSortedProfilesFromDirectoryMap();
+
NotificationRegistrar registrar_;
// Indicates that a user has logged in and that the profile specified

Powered by Google App Engine
This is Rietveld 408576698