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

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

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.cc
diff --git a/chrome/browser/chromeos/file_system_provider/service_factory.cc b/chrome/browser/chromeos/file_system_provider/service_factory.cc
index 4c618c13ea99486d33a8a0ad3d7f07b1f568c005..2c034f276fa08f30be7d43bdce98d5387f8d3d53 100644
--- a/chrome/browser/chromeos/file_system_provider/service_factory.cc
+++ b/chrome/browser/chromeos/file_system_provider/service_factory.cc
@@ -18,6 +18,12 @@ Service* ServiceFactory::Get(content::BrowserContext* context) {
GetInstance()->GetServiceForBrowserContext(context, true));
}
+// static
+Service* ServiceFactory::FindExisting(content::BrowserContext* context) {
+ return static_cast<Service*>(
+ GetInstance()->GetServiceForBrowserContext(context, false));
+}
+
ServiceFactory* ServiceFactory::GetInstance() {
return Singleton<ServiceFactory>::get();
}
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/service_factory.h ('k') | chrome/browser/resources/chromeos/fsp_internals.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698