Upstream version 10.38.208.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / safe_browsing / incident_reporting / incident_reporting_service.cc
index 951144a..7685162 100644 (file)
@@ -388,8 +388,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