Index: chrome/browser/profiles/profile_manager.cc |
=================================================================== |
--- chrome/browser/profiles/profile_manager.cc (revision 100650) |
+++ chrome/browser/profiles/profile_manager.cc (working copy) |
@@ -573,9 +573,20 @@ |
// static |
bool ProfileManager::IsMultipleProfilesEnabled() { |
+#if defined(OS_MACOSX) || (defined(TOOLKIT_VIEWS) && !defined(OS_CHROMEOS)) |
+ return true; |
+#else |
return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles); |
+#endif |
} |
ProfileManagerWithoutInit::ProfileManagerWithoutInit( |
const FilePath& user_data_dir) : ProfileManager(user_data_dir) { |
} |
+ |
+void ProfileManager::RegisterTestingProfile(Profile* profile, |
+ bool addToCache) { |
Robert Sesek
2011/09/12 14:02:16
Should be add_to_cache
|
+ RegisterProfile(profile, true); |
+ if (addToCache) |
+ AddProfileToCache(profile); |
+} |