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

Unified Diff: apps/saved_files_service_factory.h

Issue 2729503007: Remove Profile usage from //apps (Closed)
Patch Set: deps Created 3 years, 9 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.cc ('k') | apps/saved_files_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_files_service_factory.h
diff --git a/apps/saved_files_service_factory.h b/apps/saved_files_service_factory.h
index c560cc2950b6d2db4de9de9f0dc151b77be9aa1f..aff5116aefd77935481412791306a7c6e346b1b3 100644
--- a/apps/saved_files_service_factory.h
+++ b/apps/saved_files_service_factory.h
@@ -8,7 +8,9 @@
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace apps {
@@ -17,7 +19,8 @@ class SavedFilesService;
// BrowserContextKeyedServiceFactory for SavedFilesService.
class SavedFilesServiceFactory : public BrowserContextKeyedServiceFactory {
public:
- static SavedFilesService* GetForProfile(Profile* profile);
+ static SavedFilesService* GetForBrowserContext(
+ content::BrowserContext* context);
static SavedFilesServiceFactory* GetInstance();
@@ -27,7 +30,7 @@ class SavedFilesServiceFactory : public BrowserContextKeyedServiceFactory {
friend struct base::DefaultSingletonTraits<SavedFilesServiceFactory>;
KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
+ content::BrowserContext* context) const override;
};
} // namespace apps
« no previous file with comments | « apps/saved_files_service.cc ('k') | apps/saved_files_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698