Index: chrome/browser/profiles/profile_manager.cc |
=================================================================== |
--- chrome/browser/profiles/profile_manager.cc (revision 100650) |
+++ chrome/browser/profiles/profile_manager.cc (working copy) |
@@ -579,3 +579,10 @@ |
ProfileManagerWithoutInit::ProfileManagerWithoutInit( |
const FilePath& user_data_dir) : ProfileManager(user_data_dir) { |
} |
+ |
+void ProfileManager::RegisterTestingProfile(Profile* profile, |
+ bool add_to_cache) { |
+ RegisterProfile(profile, true); |
+ if (add_to_cache) |
+ AddProfileToCache(profile); |
+} |