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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_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_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 7dc19f7ade9a989e75b571794dd926fe437a03b9..aea39111ffd0f0d4c3915309e71f177a8766518e 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,12 @@ namespace extensions {
WebRequestRulesRegistry::WebRequestRulesRegistry(
Profile* profile,
- scoped_ptr<RulesRegistryWithCache::RuleStorageOnUI>* ui_part)
- : RulesRegistryWithCache((ui_part ? profile : NULL),
- declarative_webrequest_constants::kOnRequest,
- content::BrowserThread::IO,
- true /*log_storage_init_delay*/,
- ui_part),
+ scoped_ptr<RulesCacheDelegate>* cache_delegate)
+ : RulesRegistry((cache_delegate ? profile : NULL),
+ declarative_webrequest_constants::kOnRequest,
+ content::BrowserThread::IO,
+ true /*log_storage_init_delay*/,
+ cache_delegate),
profile_id_(profile) {
if (profile)
extension_info_map_ = ExtensionSystem::Get(profile)->info_map();

Powered by Google App Engine
This is Rietveld 408576698