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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h

Issue 2442953002: Remove stl_util's deletion function use from chrome/. (Closed)
Patch Set: fix Created 4 years, 2 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/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_;

Powered by Google App Engine
This is Rietveld 408576698