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

Unified Diff: chrome/browser/chromeos/file_system_provider/service_factory.h

Issue 296003012: [fsp] Introduce chrome://fsp-internals for logging and debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indentation. Created 6 years, 7 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/chromeos/file_system_provider/service_factory.h
diff --git a/chrome/browser/chromeos/file_system_provider/service_factory.h b/chrome/browser/chromeos/file_system_provider/service_factory.h
index 2aad0ddb63f87602c0845c604c5fb268a556c40d..bb7cde19b832c4c9500132b921d7eefbc0320d73 100644
--- a/chrome/browser/chromeos/file_system_provider/service_factory.h
+++ b/chrome/browser/chromeos/file_system_provider/service_factory.h
@@ -21,7 +21,14 @@ class Service;
// Creates services per profile.
class ServiceFactory : public BrowserContextKeyedServiceFactory {
public:
+ // Returns a service instance singleton, after creating it (if necessary).
static Service* Get(content::BrowserContext* context);
+
+ // Returns a service instance for the context if exists. Otherwise, returns
+ // NULL.
+ static Service* FindExisting(content::BrowserContext* context);
+
+ // Gets a singleton instance of the factory.
static ServiceFactory* GetInstance();
private:

Powered by Google App Engine
This is Rietveld 408576698