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

Unified Diff: chrome/test/base/testing_browser_process.h

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/test/base/testing_browser_process.h
diff --git a/chrome/test/base/testing_browser_process.h b/chrome/test/base/testing_browser_process.h
index 041c263082d4d99bd27b3621d3c67daeca553a01..9866a01fe921a8cccda698159c486bf30d61ff3b 100644
--- a/chrome/test/base/testing_browser_process.h
+++ b/chrome/test/base/testing_browser_process.h
@@ -85,8 +85,8 @@ class TestingBrowserProcess : public BrowserProcess {
safe_browsing::SafeBrowsingService* safe_browsing_service() override;
safe_browsing::ClientSideDetectionService* safe_browsing_detection_service()
override;
- subresource_filter::RulesetService* subresource_filter_ruleset_service()
- override;
+ subresource_filter::ContentRulesetServiceDelegate*
+ subresource_filter_ruleset_service_delegate() override;
net::URLRequestContextGetter* system_request_context() override;
BrowserProcessPlatformPart* platform_part() override;
@@ -141,7 +141,8 @@ class TestingBrowserProcess : public BrowserProcess {
void SetIOThread(IOThread* io_thread);
void SetSafeBrowsingService(safe_browsing::SafeBrowsingService* sb_service);
void SetRulesetService(
- std::unique_ptr<subresource_filter::RulesetService> ruleset_service);
+ std::unique_ptr<subresource_filter::ContentRulesetServiceDelegate>
+ ruleset_service_delegate);
void SetSystemRequestContext(net::URLRequestContextGetter* context_getter);
void SetNotificationUIManager(
std::unique_ptr<NotificationUIManager> notification_ui_manager);
@@ -179,8 +180,8 @@ class TestingBrowserProcess : public BrowserProcess {
#endif
scoped_refptr<safe_browsing::SafeBrowsingService> sb_service_;
- std::unique_ptr<subresource_filter::RulesetService>
- subresource_filter_ruleset_service_;
+ std::unique_ptr<subresource_filter::ContentRulesetServiceDelegate>
+ subresource_filter_ruleset_service_delegate_;
std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_;

Powered by Google App Engine
This is Rietveld 408576698