Chromium Code Reviews| Index: chrome/browser/profiles/profile_manager.cc |
| =================================================================== |
| --- chrome/browser/profiles/profile_manager.cc (revision 112977) |
| +++ chrome/browser/profiles/profile_manager.cc (working copy) |
| @@ -763,8 +763,10 @@ |
| void ProfileManager::RegisterTestingProfile(Profile* profile, |
| bool add_to_cache) { |
| RegisterProfile(profile, true); |
| - if (add_to_cache) |
| + if (add_to_cache){ |
| + InitProfileUserPrefs(profile); |
| AddProfileToCache(profile); |
| + } |
| } |
| #if defined(OS_WIN) |