| 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_;
|
|
|