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

Unified Diff: components/autofill/core/browser/autofill_download_manager.h

Issue 2288173002: Remove STLDeleteContainerPairFirstPointers from AutofillDownloadManager (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_download_manager.h
diff --git a/components/autofill/core/browser/autofill_download_manager.h b/components/autofill/core/browser/autofill_download_manager.h
index c470614f1874c88d5ff49787bc7a3d2c4e8e8f2d..c1b39b1d58b97e1131c8983be5f1769098d0d834 100644
--- a/components/autofill/core/browser/autofill_download_manager.h
+++ b/components/autofill/core/browser/autofill_download_manager.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <list>
#include <map>
+#include <memory>
#include <string>
#include <utility>
#include <vector>
@@ -135,8 +136,11 @@ class AutofillDownloadManager : public net::URLFetcherDelegate {
// For each requested form for both query and upload we create a separate
// request and save its info. As url fetcher is identified by its address
- // we use a map between fetchers and info.
- std::map<net::URLFetcher*, FormRequestData> url_fetchers_;
+ // we use a map between fetchers and info. The value type is a pair of an
+ // owning pointer to the key and the actual FormRequestData.
+ std::map<net::URLFetcher*,
+ std::pair<std::unique_ptr<net::URLFetcher>, FormRequestData>>
+ url_fetchers_;
// Cached QUERY requests.
QueryRequestCache cached_forms_;
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698