Index: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h |
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h |
index 38e6d165f8283ad19416837c98fc5f1f6b1f7cbc..6adca9a4fa553921497a630d462c49c524151cc7 100644 |
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h |
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h |
@@ -161,9 +161,6 @@ class IncidentReportingService : public content::NotificationObserver { |
class UploadContext; |
class Receiver; |
- // A mapping of profiles to contexts holding state about received incidents. |
- typedef std::map<Profile*, ProfileContext*> ProfileContextCollection; |
- |
// Returns the context for |profile|, creating it if it does not exist. |
ProfileContext* GetOrCreateProfileContext(Profile* profile); |
@@ -333,8 +330,9 @@ class IncidentReportingService : public content::NotificationObserver { |
base::TimeTicks last_download_begin_; |
// Context data for all on-the-record profiles plus the process-wide (NULL) |
- // context. |
- ProfileContextCollection profiles_; |
+ // context. A mapping of profiles to contexts holding state about received |
+ // incidents. |
+ std::map<Profile*, std::unique_ptr<ProfileContext>> profiles_; |
// Callbacks registered for performing delayed analysis. |
DelayedCallbackRunner delayed_analysis_callbacks_; |