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

Unified Diff: content/browser/download/mhtml_generation_manager.h

Issue 2435863004: Remove stl_util's deletion function use from content/. (Closed)
Patch Set: minus service worker 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: content/browser/download/mhtml_generation_manager.h
diff --git a/content/browser/download/mhtml_generation_manager.h b/content/browser/download/mhtml_generation_manager.h
index 31d9a64df624431324431721353b62e1eb2956a1..597350222547e6e561982c26ac75415ae9fd7093 100644
--- a/content/browser/download/mhtml_generation_manager.h
+++ b/content/browser/download/mhtml_generation_manager.h
@@ -7,6 +7,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <set>
#include <string>
@@ -88,8 +89,7 @@ class MHTMLGenerationManager {
// Called when the render process connected to a job exits.
void RenderProcessExited(Job* job);
- typedef std::map<int, Job*> IDToJobMap;
- IDToJobMap id_to_job_;
+ std::map<int, std::unique_ptr<Job>> id_to_job_;
int next_job_id_;
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698