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

Unified Diff: chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h

Issue 2795053002: [subresource_filter] Implement the "Smart" UI on Android (Closed)
Patch Set: minor tweaks Created 3 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/subresource_filter/subresource_filter_profile_context_factory.h
diff --git a/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h b/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
index 292259c0b2bad4d3dd4f8c8ce7625071b126ab54..139256322ea0131d84a7dc9c1214111f8b58cf75 100644
--- a/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
+++ b/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
@@ -10,13 +10,14 @@
class KeyedService;
class Profile;
+class SubresourceFilterProfileContext;
// This class is responsible for instantiating a profile-scoped context for
// subresource filtering.
class SubresourceFilterProfileContextFactory
: public BrowserContextKeyedServiceFactory {
public:
- static void EnsureForProfile(Profile* profile);
+ static SubresourceFilterProfileContext* GetForProfile(Profile* profile);
static SubresourceFilterProfileContextFactory* GetInstance();
@@ -26,6 +27,9 @@ class SubresourceFilterProfileContextFactory
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
+ content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const override;
+
DISALLOW_COPY_AND_ASSIGN(SubresourceFilterProfileContextFactory);
};

Powered by Google App Engine
This is Rietveld 408576698