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

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: Y U NO LIEK CONST, MAC? Created 9 years, 6 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 4981a1b9199adc13545769b51f26c26e51acd8bc..f5a3c64aa0c0a5d24ed57854fdc0005fb16d57a0 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -295,10 +295,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);
Elliot Glaysher 2011/06/30 23:55:03 Why do we do this? Things seem to work if I leave
Miranda Callahan 2011/07/01 15:20:24 Good question. I tracked through the code and saw
@@ -819,6 +815,8 @@ void ProfileImpl::OnPrefsLoaded(bool success) {
// Make sure we save to disk that the session has opened.
prefs_->ScheduleSavePersistentPrefs();
+ ProfileDependencyManager::GetInstance()->CreateProfileServices(this, false);
+
// Ensure that preferences set by extensions are restored in the profile
// as early as possible. The constructor takes care of that.
extension_prefs_.reset(new ExtensionPrefs(

Powered by Google App Engine
This is Rietveld 408576698