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

Unified Diff: chrome/test/base/testing_browser_process.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
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | components/subresource_filter/content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_browser_process.cc
diff --git a/chrome/test/base/testing_browser_process.cc b/chrome/test/base/testing_browser_process.cc
index c2980ebe2142e780eb3937bd438cc22b3c9e1e2a..8896b3862abaf9b63050062fda6e9b255a834f10 100644
--- a/chrome/test/base/testing_browser_process.cc
+++ b/chrome/test/base/testing_browser_process.cc
@@ -24,7 +24,7 @@
#include "components/network_time/network_time_tracker.h"
#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/prefs/pref_service.h"
-#include "components/subresource_filter/core/browser/ruleset_service.h"
+#include "components/subresource_filter/content/browser/content_ruleset_service.h"
#include "content/public/browser/notification_service.h"
#include "extensions/features/features.h"
#include "media/media_features.h"
@@ -222,7 +222,7 @@ TestingBrowserProcess::safe_browsing_detection_service() {
return nullptr;
}
-subresource_filter::RulesetService*
+subresource_filter::ContentRulesetService*
TestingBrowserProcess::subresource_filter_ruleset_service() {
return subresource_filter_ruleset_service_.get();
}
@@ -461,8 +461,9 @@ void TestingBrowserProcess::SetSafeBrowsingService(
}
void TestingBrowserProcess::SetRulesetService(
- std::unique_ptr<subresource_filter::RulesetService> ruleset_service) {
- subresource_filter_ruleset_service_.swap(ruleset_service);
+ std::unique_ptr<subresource_filter::ContentRulesetService>
+ content_ruleset_service) {
+ subresource_filter_ruleset_service_.swap(content_ruleset_service);
}
void TestingBrowserProcess::SetRapporServiceImpl(
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | components/subresource_filter/content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698