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

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

Issue 7256002: Multi-Profiles: New Profile Setup UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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/browser/profiles/profile_info_cache.cc ('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
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index c532a77033fd2779450d8d44fe16ed2c3fb363fc..55bee3123a0a39b2e8368b6115c3a52f6476f8b0 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -25,6 +25,7 @@
class FilePath;
class NewProfileLauncher;
+class ProfileInfoCache;
class ProfileManagerObserver {
public:
@@ -147,6 +148,10 @@ class ProfileManager : public base::NonThreadSafe,
// Register multi-profile related preferences in Local State.
static void RegisterPrefs(PrefService* prefs);
+ // Returns a ProfileInfoCache object which can be used to get information
+ // about profiles without having to load them from disk.
+ ProfileInfoCache& GetProfileInfoCache();
+
protected:
// Does final initial actions.
virtual void DoFinalInit(Profile* profile);
@@ -204,6 +209,9 @@ class ProfileManager : public base::NonThreadSafe,
typedef std::map<FilePath, linked_ptr<ProfileInfo> > ProfilesInfoMap;
ProfilesInfoMap profiles_info_;
+ // Object to cache various information about profiles.
+ scoped_ptr<ProfileInfoCache> profile_info_cache_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileManager);
};
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698