Chromium Code Reviews| Index: chrome/browser/profiles/profile_manager.cc |
| =================================================================== |
| --- chrome/browser/profiles/profile_manager.cc (revision 109036) |
| +++ chrome/browser/profiles/profile_manager.cc (working copy) |
| @@ -465,12 +465,21 @@ |
| } |
| void ProfileManager::DoFinalInit(Profile* profile, bool go_off_the_record) { |
| + DoFinalServicesInit(profile, go_off_the_record); |
| + AddProfileToCache(profile); |
| + |
|
Robert Sesek
2011/11/09 19:07:46
nit: remove
|
| + DoFinalInitLogging(profile); |
| +} |
| + |
| +void ProfileManager::DoFinalServicesInit(Profile* profile, |
| + bool go_off_the_record) { |
| const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| profile->InitExtensions(!go_off_the_record); |
| if (!command_line.HasSwitch(switches::kDisableWebResources)) |
| profile->InitPromoResources(); |
| - AddProfileToCache(profile); |
| +} |
| +void ProfileManager::DoFinalInitLogging(Profile* profile) { |
| // Log the profile size after a reasonable startup delay. |
| BrowserThread::PostDelayedTask(BrowserThread::FILE, FROM_HERE, |
| new ProfileSizeTask(profile), 112000); |