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

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

Issue 6879031: Add optional creation to ProfileKeyedServiceFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 81262077dded72abeb44fdd3e2a37998ace70522..aa8340d203f0655499da14a8eaf6c9f1968fa687 100644
--- a/chrome/browser/profiles/profile_keyed_service_factory.h
+++ b/chrome/browser/profiles/profile_keyed_service_factory.h
@@ -54,7 +54,7 @@ class ProfileKeyedServiceFactory {
// Common implementation that maps |profile| to some service object. Deals
// with incognito profiles per subclass instructions with
// ServiceActiveInIncognito().
- ProfileKeyedService* GetServiceForProfile(Profile* profile);
+ ProfileKeyedService* GetServiceForProfile(Profile* profile, bool create);
Miranda Callahan 2011/04/19 17:04:20 add comment saying what the |create| parameter doe
Torne 2011/04/19 17:15:13 Done.
// The main public interface for declaring dependencies between services
// created by factories.

Powered by Google App Engine
This is Rietveld 408576698