Chromium Code Reviews| 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,9 @@ |
| #endif |
| return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles); |
| } |
| + |
| +void ProfileManager::RegisterTestingProfile(Profile* profile, |
| + bool created) { |
| + RegisterProfile(profile, true); |
| + AddProfileToCache(profile); |
| +} |