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

Unified Diff: apps/saved_files_service_factory.cc

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « apps/saved_files_service_factory.h ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_files_service_factory.cc
diff --git a/apps/saved_files_service_factory.cc b/apps/saved_files_service_factory.cc
index 4574209d1219b3d6106a4c4ccd966e5755a9b5d9..f85b315500c40f463a5743eb9a9acd76f76f8400 100644
--- a/apps/saved_files_service_factory.cc
+++ b/apps/saved_files_service_factory.cc
@@ -18,6 +18,13 @@ SavedFilesService* SavedFilesServiceFactory::GetForBrowserContext(
}
// static
+SavedFilesService* SavedFilesServiceFactory::GetForBrowserContextIfExists(
+ content::BrowserContext* context) {
+ return static_cast<SavedFilesService*>(
+ GetInstance()->GetServiceForBrowserContext(context, false));
+}
+
+// static
SavedFilesServiceFactory* SavedFilesServiceFactory::GetInstance() {
return base::Singleton<SavedFilesServiceFactory>::get();
}
« no previous file with comments | « apps/saved_files_service_factory.h ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698