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

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

Issue 49693003: Refactor RulesRegistryWithCache to RulesRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 7 years, 2 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.cc
diff --git a/chrome/browser/extensions/api/declarative_content/content_rules_registry.cc b/chrome/browser/extensions/api/declarative_content/content_rules_registry.cc
index 99f149082463832999b2ec438c3586094518bf4a..4bd8f35e2efcf7c22bb364a6bbc439fad8538a4f 100644
--- a/chrome/browser/extensions/api/declarative_content/content_rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative_content/content_rules_registry.cc
@@ -23,12 +23,12 @@ namespace extensions {
ContentRulesRegistry::ContentRulesRegistry(
Profile* profile,
- scoped_ptr<RulesRegistryWithCache::RuleStorageOnUI>* ui_part)
- : RulesRegistryWithCache((ui_part ? profile : NULL),
- declarative_content_constants::kOnPageChanged,
- content::BrowserThread::UI,
- false /*log_storage_init_delay*/,
- ui_part),
+ scoped_ptr<RulesCacheDelegate>* cache_delegate)
+ : RulesRegistry((cache_delegate ? profile : NULL),
+ declarative_content_constants::kOnPageChanged,
+ content::BrowserThread::UI,
+ false /*log_storage_init_delay*/,
+ cache_delegate),
profile_(profile) {
extension_info_map_ = ExtensionSystem::Get(profile)->info_map();

Powered by Google App Engine
This is Rietveld 408576698