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

Unified Diff: chrome/browser/profiles/profile_dependency_manager.h

Issue 7285014: [wip] Profile: Sketch of a creation system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to retrybot 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_dependency_manager.h
diff --git a/chrome/browser/profiles/profile_dependency_manager.h b/chrome/browser/profiles/profile_dependency_manager.h
index b477bb7ec01daf4cbd5ad59372489b75b616e08e..6dc5c9f19352d0918d9b320e7d5e4848fb5aca16 100644
--- a/chrome/browser/profiles/profile_dependency_manager.h
+++ b/chrome/browser/profiles/profile_dependency_manager.h
@@ -31,6 +31,13 @@ class ProfileDependencyManager {
void AddEdge(ProfileKeyedServiceFactory* depended,
ProfileKeyedServiceFactory* dependee);
+ // Called by each Profile to alert us of its creation. Several services want
+ // to be started when a profile is created. Testing configuration is also
+ // done at this time. (If you want your ProfileKeyedService to be started
+ // with the Profile, override ProfileKeyedServiceFactory::
+ // ServiceIsCreatedWithProfile() to return true.)
+ void CreateProfileServices(Profile* profile, bool is_testing_profile);
+
// Called by each Profile to alert us that we should destroy services
// associated with it.
//
@@ -44,11 +51,6 @@ class ProfileDependencyManager {
void DestroyProfileServices(Profile* profile);
#ifndef NDEBUG
- // Unmark |profile| as dead. This exists because of unit tests, which will
- // often have similar stack structures. 0xWhatever might be created, go out
- // of scope, and then a new Profile object might be created at 0xWhatever.
- void ProfileNowExists(Profile* profile);
-
// Debugging assertion called as part of GetServiceForProfile in debug
// mode. This will NOTREACHED() whenever the user is trying to access a stale
// Profile*.
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698