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

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
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,20 @@
}
void ProfileManager::DoFinalInit(Profile* profile, bool go_off_the_record) {
+ DoFinalInitForServices(profile, go_off_the_record);
+ AddProfileToCache(profile);
+ DoFinalInitLogging(profile);
+}
+
+void ProfileManager::DoFinalInitForServices(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);
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698