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

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

Issue 7648037: [Mac] Flip the flag for multi-profiles to on by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Un-needed includes Created 9 years, 4 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 ad3dc469f5232029b8b771393f9b57f8e9b91de7..fcebda697110b41d3ff40c3e97bb5cc269842a00 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -26,6 +26,7 @@
class FilePath;
class NewProfileLauncher;
class ProfileInfoCache;
+class ProfileInfoInterface;
class ProfileManagerObserver {
public:
@@ -157,9 +158,14 @@ 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
+ // Returns a ProfileInfoInterface object which can be used to get information
// about profiles without having to load them from disk.
- ProfileInfoCache& GetProfileInfoCache();
+ virtual ProfileInfoInterface& GetProfileInfo();
+
+ // Returns the ProfileInfoInterface as a mutable ProfileInfoCache. This should
+ // only be used when you need the full set of methods. Wherever possible use
+ // the ProfileInfoInterface.
+ virtual ProfileInfoCache& GetMutableProfileInfo();
// Schedules the profile at the given path to be deleted on shutdown.
void ScheduleProfileForDeletion(const FilePath& profile_dir);

Powered by Google App Engine
This is Rietveld 408576698