Index: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc |
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc |
index 38845ec84ad80ed413c48f006610ebad0e64ebfa..955e8d4b5047c05454f3201fcaacd45ab18b4ae4 100644 |
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc |
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc |
@@ -398,8 +398,10 @@ void IncidentReportingService::OnProfileAdded(Profile* profile) { |
// Start a new report if this profile participates in safe browsing and there |
// are process-wide incidents. |
- if (safe_browsing_enabled && GetProfileContext(NULL)) |
+ if (safe_browsing_enabled && GetProfileContext(NULL) && |
+ GetProfileContext(NULL)->incidents.size()) { |
BeginReportProcessing(); |
+ } |
// TODO(grt): register for pref change notifications to start delayed analysis |
// and/or report processing if sb is currently disabled but subsequently |