Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 67fbe65f3620ff7bfb0b6c3354c6b3a437e5cfaf..e1e37547a0c5e4ec2c0ab3476ec8ba9ec404dfcd 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -303,10 +303,6 @@ ProfileImpl::ProfileImpl(const FilePath& path, |
DCHECK(!path.empty()) << "Using an empty path will attempt to write " << |
"profile files to the root directory!"; |
-#ifndef NDEBUG |
- ProfileDependencyManager::GetInstance()->ProfileNowExists(this); |
-#endif |
- |
create_session_service_timer_.Start( |
TimeDelta::FromMilliseconds(kCreateSessionServiceDelayMS), this, |
&ProfileImpl::EnsureSessionServiceCreated); |
@@ -379,8 +375,6 @@ void ProfileImpl::DoFinalInit() { |
g_browser_process->background_mode_manager()->RegisterProfile(this); |
#endif |
- BackgroundContentsServiceFactory::GetForProfile(this); |
- |
extension_info_map_ = new ExtensionInfoMap(); |
InitRegisteredProtocolHandlers(); |
@@ -870,6 +864,8 @@ void ProfileImpl::OnPrefsLoaded(bool success) { |
GetPath().AppendASCII(ExtensionService::kInstallDirectoryName), |
GetExtensionPrefValueMap())); |
+ ProfileDependencyManager::GetInstance()->CreateProfileServices(this, false); |
+ |
DCHECK(!net_pref_observer_.get()); |
net_pref_observer_.reset( |
new NetPrefObserver(prefs_.get(), GetPrerenderManager())); |