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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 341563003: Safe browsing incident reporting service improvements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r278347 Created 6 years, 6 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/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index e603f17221c384880679ad29cd69c5a681c01a13..0d34ccd427b4948b36efb7c595c45e2f9f7452e2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -310,10 +310,11 @@ SafeBrowsingPingManager* SafeBrowsingService::ping_manager() const {
}
scoped_ptr<TrackedPreferenceValidationDelegate>
-SafeBrowsingService::CreatePreferenceValidationDelegate() const {
+SafeBrowsingService::CreatePreferenceValidationDelegate(
+ Profile* profile) const {
#if defined(FULL_SAFE_BROWSING)
if (incident_service_)
- return incident_service_->CreatePreferenceValidationDelegate();
+ return incident_service_->CreatePreferenceValidationDelegate(profile);
#endif
return scoped_ptr<TrackedPreferenceValidationDelegate>();
}
@@ -528,7 +529,5 @@ void SafeBrowsingService::RefreshState() {
csd_service_->SetEnabledAndRefreshState(enable);
if (download_service_)
download_service_->SetEnabled(enable);
- if (incident_service_)
- incident_service_->SetEnabled(enable);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698