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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_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/safe_browsing_service.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h
index 40876268ca38f30fe30bafb14036623286f1fc20..d8de6da53ab3f122bc80e856d4a987f64990a519 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -237,7 +237,7 @@ class SafeBrowsingService : public base::RefCountedThreadSafe<
// Process the observed resource requests on the UI thread.
void ProcessResourceRequest(const ResourceRequestInfo& request);
- // The factory used to instanciate a SafeBrowsingService object.
+ // The factory used to instantiate a SafeBrowsingService object.
// Useful for tests, so they can provide their own implementation of
// SafeBrowsingService.
static SafeBrowsingServiceFactory* factory_;
@@ -267,7 +267,7 @@ class SafeBrowsingService : public base::RefCountedThreadSafe<
// This is used to determine if any profile is currently using the safe
// browsing service, and to start it up or shut it down accordingly.
// Accessed on UI thread.
- std::map<PrefService*, PrefChangeRegistrar*> prefs_map_;
+ std::map<PrefService*, std::unique_ptr<PrefChangeRegistrar>> prefs_map_;
// Used to track creation and destruction of profiles on the UI thread.
content::NotificationRegistrar prefs_registrar_;
« no previous file with comments | « chrome/browser/safe_browsing/local_database_manager_unittest.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698