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

Unified Diff: chrome/browser/extensions/api/declarative_content/content_rules_registry.h

Issue 535203003: Replace Profile* in declarative_api with BrowserContext* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove changes to unit-test; those have to wait until move. Created 6 years, 3 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/extensions/api/declarative_content/content_rules_registry.h
diff --git a/chrome/browser/extensions/api/declarative_content/content_rules_registry.h b/chrome/browser/extensions/api/declarative_content/content_rules_registry.h
index 9224374a7ee358dcc6e100be0aac06b2723ea685..3aa5eacd2a5228813c72067898f3a9eb28d22830 100644
--- a/chrome/browser/extensions/api/declarative_content/content_rules_registry.h
+++ b/chrome/browser/extensions/api/declarative_content/content_rules_registry.h
@@ -23,10 +23,10 @@
#include "content/public/browser/notification_registrar.h"
#include "extensions/browser/info_map.h"
-class Profile;
class ContentPermissions;
namespace content {
+class BrowserContext;
class RenderProcessHost;
class WebContents;
struct FrameNavigateParams;
@@ -64,7 +64,8 @@ class ContentRulesRegistry : public RulesRegistry,
public:
// For testing, |ui_part| can be NULL. In that case it constructs the
// registry with storage functionality suspended.
- ContentRulesRegistry(Profile* profile, RulesCacheDelegate* cache_delegate);
+ ContentRulesRegistry(content::BrowserContext* browser_context,
+ RulesCacheDelegate* cache_delegate);
// Applies all content rules given an update (CSS match change or
// page navigation, for now) from the renderer.
@@ -109,7 +110,7 @@ class ContentRulesRegistry : public RulesRegistry,
// Scans the rules for the set of conditions they're watching. If the set has
// changed, calls InstructRenderProcess() for each RenderProcessHost in the
- // current profile.
+ // current browser_context.
void UpdateConditionCache();
// Tells a renderer what page attributes to watch for using an

Powered by Google App Engine
This is Rietveld 408576698