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

Unified Diff: apps/saved_files_service.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/launcher.cc ('k') | apps/saved_files_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_files_service.h
diff --git a/apps/saved_files_service.h b/apps/saved_files_service.h
index be80e51edee1dfa7134fb1b24d80366fa970ab47..0007d660ffa309f75462bcaab773aed723b0f3ca 100644
--- a/apps/saved_files_service.h
+++ b/apps/saved_files_service.h
@@ -17,7 +17,10 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
+
class SavedFilesServiceUnitTest;
FORWARD_DECLARE_TEST(SavedFilesServiceUnitTest, RetainTwoFilesTest);
FORWARD_DECLARE_TEST(SavedFilesServiceUnitTest, EvictionTest);
@@ -59,10 +62,10 @@ struct SavedFileEntry {
class SavedFilesService : public KeyedService,
public content::NotificationObserver {
public:
- explicit SavedFilesService(Profile* profile);
+ explicit SavedFilesService(content::BrowserContext* context);
~SavedFilesService() override;
- static SavedFilesService* Get(Profile* profile);
+ static SavedFilesService* Get(content::BrowserContext* context);
// Registers a file entry with the saved files service, making it eligible to
// be put into the queue. File entries that are in the retained files queue at
@@ -130,7 +133,7 @@ class SavedFilesService : public KeyedService,
std::map<std::string, std::unique_ptr<SavedFiles>>
extension_id_to_saved_files_;
content::NotificationRegistrar registrar_;
- Profile* profile_;
+ content::BrowserContext* context_;
DISALLOW_COPY_AND_ASSIGN(SavedFilesService);
};
« no previous file with comments | « apps/launcher.cc ('k') | apps/saved_files_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698