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

Unified Diff: apps/saved_files_service_factory.cc

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_factory.h ('k') | chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm » ('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 9d813bf841a945da664be2efdc175b013b16662f..4574209d1219b3d6106a4c4ccd966e5755a9b5d9 100644
--- a/apps/saved_files_service_factory.cc
+++ b/apps/saved_files_service_factory.cc
@@ -5,15 +5,16 @@
#include "apps/saved_files_service_factory.h"
#include "apps/saved_files_service.h"
-#include "chrome/browser/profiles/profile.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
+#include "content/public/browser/browser_context.h"
namespace apps {
// static
-SavedFilesService* SavedFilesServiceFactory::GetForProfile(Profile* profile) {
+SavedFilesService* SavedFilesServiceFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<SavedFilesService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
+ GetInstance()->GetServiceForBrowserContext(context, true));
}
// static
@@ -29,8 +30,8 @@ SavedFilesServiceFactory::SavedFilesServiceFactory()
SavedFilesServiceFactory::~SavedFilesServiceFactory() {}
KeyedService* SavedFilesServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new SavedFilesService(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ return new SavedFilesService(context);
}
} // namespace apps
« no previous file with comments | « apps/saved_files_service_factory.h ('k') | chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698