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

Unified Diff: components/subresource_filter/core/browser/ruleset_service.cc

Issue 2731283009: Swap ownership of RulesetService and the content delegate (Closed)
Patch Set: engedy review 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: components/subresource_filter/core/browser/ruleset_service.cc
diff --git a/components/subresource_filter/core/browser/ruleset_service.cc b/components/subresource_filter/core/browser/ruleset_service.cc
index 179375b5069e865b9ebedfea38b460fa03733f46..46256729f5c0024870d3a5df6259647eb3b35dfb 100644
--- a/components/subresource_filter/core/browser/ruleset_service.cc
+++ b/components/subresource_filter/core/browser/ruleset_service.cc
@@ -215,11 +215,11 @@ decltype(&base::ReplaceFile) RulesetService::g_replace_file_func =
RulesetService::RulesetService(
PrefService* local_state,
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner,
- std::unique_ptr<RulesetServiceDelegate> delegate,
+ RulesetServiceDelegate* delegate,
const base::FilePath& indexed_ruleset_base_dir)
: local_state_(local_state),
blocking_task_runner_(blocking_task_runner),
- delegate_(std::move(delegate)),
+ delegate_(delegate),
is_after_startup_(false),
indexed_ruleset_base_dir_(indexed_ruleset_base_dir) {
DCHECK(delegate_);

Powered by Google App Engine
This is Rietveld 408576698