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

Unified Diff: chrome/browser/extensions/api/declarative/test_rules_registry.cc

Issue 53273002: Decouple RulesCacheDelegate from RulesRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_rules_registry_with_cache
Patch Set: Updated Created 7 years, 1 month 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/test_rules_registry.cc
diff --git a/chrome/browser/extensions/api/declarative/test_rules_registry.cc b/chrome/browser/extensions/api/declarative/test_rules_registry.cc
index 96858e302313ac87f1ced04ce3627534d0afbe17..d22ce15b18a0034f28dd138163fca131a65ecdff 100644
--- a/chrome/browser/extensions/api/declarative/test_rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative/test_rules_registry.cc
@@ -13,19 +13,17 @@ TestRulesRegistry::TestRulesRegistry(content::BrowserThread::ID owner_thread,
: RulesRegistry(NULL /*profile*/,
event_name,
owner_thread,
- false /*log_storage_init_delay, this is ignored*/,
- NULL /*ui_part*/) {}
+ NULL) {}
TestRulesRegistry::TestRulesRegistry(
Profile* profile,
const std::string& event_name,
content::BrowserThread::ID owner_thread,
- scoped_ptr<RulesCacheDelegate>* ui_part)
+ RulesCacheDelegate* cache_delegate)
: RulesRegistry(profile,
event_name,
owner_thread,
- false /*log_storage_init_delay*/,
- ui_part) {}
+ cache_delegate) {}
std::string TestRulesRegistry::AddRulesImpl(
const std::string& extension_id,

Powered by Google App Engine
This is Rietveld 408576698