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

Unified Diff: content/browser/download/download_manager_impl.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/download_manager_impl.h
diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
index f9dfc8bd1ab1e39c7cb57622e0ccd0a25be56d74..e21dc123a3f764144a796856c6a88213d1e75b36 100644
--- a/content/browser/download/download_manager_impl.h
+++ b/content/browser/download/download_manager_impl.h
@@ -138,7 +138,6 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
private:
using DownloadSet = std::set<DownloadItem*>;
- using DownloadMap = std::unordered_map<uint32_t, DownloadItemImpl*>;
using DownloadGuidMap = std::unordered_map<std::string, DownloadItemImpl*>;
using DownloadItemImplVector = std::vector<DownloadItemImpl*>;
using DownloadRemover = base::Callback<bool(const DownloadItemImpl*)>;
@@ -213,7 +212,7 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
// "save page as" downloads.
// TODO(asanka): Remove this container in favor of downloads_by_guid_ as a
// part of http://crbug.com/593020.
- DownloadMap downloads_;
+ std::unordered_map<uint32_t, std::unique_ptr<DownloadItemImpl>> downloads_;
// Same as the above, but maps from GUID to download item. Note that the
// container is case sensitive. Hence the key needs to be normalized to
« no previous file with comments | « content/browser/download/download_item_impl_unittest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698