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

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

Issue 7285014: [wip] Profile: Sketch of a creation system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 5 months 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_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()));

Powered by Google App Engine
This is Rietveld 408576698