Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 8502031: Refactor ProfileManager::DoFinalInit(...) to allow for a more flexible ProfileManagerWithoutInit.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« chrome/browser/profiles/profile_manager.h ('K') | « chrome/browser/profiles/profile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698