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

Unified Diff: chrome/browser/subresource_filter/test_ruleset_publisher.cc

Issue 2731283009: Swap ownership of RulesetService and the content delegate (Closed)
Patch Set: Swap ownership of RulesetService and the content delegate Created 3 years, 9 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/subresource_filter/test_ruleset_publisher.cc
diff --git a/chrome/browser/subresource_filter/test_ruleset_publisher.cc b/chrome/browser/subresource_filter/test_ruleset_publisher.cc
index ea9c8173738b8f913736186378cfd1ac0a27dd09..806748e654ecbc2e4c025d8119dc00fef722e94b 100644
--- a/chrome/browser/subresource_filter/test_ruleset_publisher.cc
+++ b/chrome/browser/subresource_filter/test_ruleset_publisher.cc
@@ -21,8 +21,7 @@ class RulesetDistributionListener {
public:
RulesetDistributionListener()
: delegate_(static_cast<ContentRulesetServiceDelegate*>(
- g_browser_process->subresource_filter_ruleset_service()
- ->delegate())) {
+ g_browser_process->subresource_filter_ruleset_service_delegate())) {
delegate_->SetRulesetPublishedCallbackForTesting(run_loop_.QuitClosure());
}
@@ -52,7 +51,8 @@ void TestRulesetPublisher::SetRuleset(const TestRuleset& unindexed_ruleset) {
unindexed_ruleset_info.content_version = test_ruleset_content_version;
unindexed_ruleset_info.ruleset_path = unindexed_ruleset.path;
RulesetDistributionListener listener;
- g_browser_process->subresource_filter_ruleset_service()
+ g_browser_process->subresource_filter_ruleset_service_delegate()
+ ->ruleset_service()
->IndexAndStoreAndPublishRulesetIfNeeded(unindexed_ruleset_info);
listener.AwaitDistribution();
}

Powered by Google App Engine
This is Rietveld 408576698