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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_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_webrequest/webrequest_rules_registry.cc
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.cc b/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.cc
index aea39111ffd0f0d4c3915309e71f177a8766518e..be0010bfa872de1d8229a7980f89839ad7c3ca40 100644
--- a/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.cc
@@ -36,12 +36,11 @@ namespace extensions {
WebRequestRulesRegistry::WebRequestRulesRegistry(
Profile* profile,
- scoped_ptr<RulesCacheDelegate>* cache_delegate)
- : RulesRegistry((cache_delegate ? profile : NULL),
- declarative_webrequest_constants::kOnRequest,
- content::BrowserThread::IO,
- true /*log_storage_init_delay*/,
- cache_delegate),
+ RulesCacheDelegate* cache_delegate)
+ : RulesRegistry(profile,
+ declarative_webrequest_constants::kOnRequest,
+ content::BrowserThread::IO,
+ cache_delegate),
profile_id_(profile) {
if (profile)
extension_info_map_ = ExtensionSystem::Get(profile)->info_map();

Powered by Google App Engine
This is Rietveld 408576698