Index: chrome/browser/profiles/profile_manager.cc |
=================================================================== |
--- chrome/browser/profiles/profile_manager.cc (revision 97284) |
+++ chrome/browser/profiles/profile_manager.cc (working copy) |
@@ -564,3 +564,10 @@ |
#endif |
return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles); |
} |
+ |
+void ProfileManager::RegisterTestingProfile(Profile* profile, |
+ bool addToCache) { |
+ RegisterProfile(profile, true); |
+ if (addToCache) |
+ AddProfileToCache(profile); |
+} |