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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_service.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/rules_registry_service.h
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service.h b/chrome/browser/extensions/api/declarative/rules_registry_service.h
index 8ea722c6a088b1aeb50c7a26c7dc846ce8c8a989..401d180dc5137cdf91d4cc5025a9147aa41e571e 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service.h
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service.h
@@ -14,14 +14,11 @@
#include "base/memory/scoped_vector.h"
#include "base/scoped_observer.h"
#include "chrome/browser/extensions/api/declarative/rules_registry.h"
-#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/extension_registry_observer.h"
-class Profile;
-
namespace content {
class BrowserContext;
class NotificationSource;
@@ -68,7 +65,7 @@ class RulesRegistryService : public BrowserContextKeyedAPI,
static BrowserContextKeyedAPIFactory<RulesRegistryService>*
GetFactoryInstance();
- // Convenience method to get the RulesRegistryService for a profile.
+ // Convenience method to get the RulesRegistryService for a context.
static RulesRegistryService* Get(content::BrowserContext* context);
// Registers the default RulesRegistries used in Chromium.
@@ -151,7 +148,7 @@ class RulesRegistryService : public BrowserContextKeyedAPI,
ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
extension_registry_observer_;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(RulesRegistryService);
};

Powered by Google App Engine
This is Rietveld 408576698