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

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

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_keyed_service_factory.h
diff --git a/chrome/browser/profiles/profile_keyed_service_factory.h b/chrome/browser/profiles/profile_keyed_service_factory.h
index f805db7f0d05c38f23a7bab802eb18ab52666ed0..8efd3c31f1df0403f7f1e807b0af7d73e9664314 100644
--- a/chrome/browser/profiles/profile_keyed_service_factory.h
+++ b/chrome/browser/profiles/profile_keyed_service_factory.h
@@ -75,6 +75,18 @@ class ProfileKeyedServiceFactory {
virtual bool ServiceRedirectedInIncognito();
virtual bool ServiceHasOwnInstanceInIncognito();
+ // By default, we create instances of a service lazily and wait until
+ // GetForProfile() is called on our subclass. Some service need to be created
+ // as soon as the Profile has been brought up.
+ virtual bool ServiceIsCreatedWithProfile();
Miranda Callahan 2011/07/01 15:20:24 I wonder if we really need this function; won't an
+
+ // By default, TestingProfiles will be treated like normal profiles. You can
+ // override this so that by default, the service associated with the
+ // TestingProfile is NULL. (This is just a shortcut around
+ // SetTestingFactory() to make sure our profile's don't directly refer to the
+ // services they use.)
+ virtual bool ServiceIsNULLWhileTesting();
+
// A helper object actually listens for notifications about Profile
// destruction, calculates the order in which things are destroyed and then
// does a two pass shutdown.

Powered by Google App Engine
This is Rietveld 408576698