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

Unified Diff: chrome/browser/extensions/blacklist_state_fetcher.h

Issue 2293153002: Remove stl_util's STLDeleteContainerPairFirstPointers. (Closed)
Patch Set: fixing 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
Index: chrome/browser/extensions/blacklist_state_fetcher.h
diff --git a/chrome/browser/extensions/blacklist_state_fetcher.h b/chrome/browser/extensions/blacklist_state_fetcher.h
index 52de5ba3caf891a17a81ee6b7705f923fe82edce..cb5f65128efc92c8d87872ca8d825356895968db 100644
--- a/chrome/browser/extensions/blacklist_state_fetcher.h
+++ b/chrome/browser/extensions/blacklist_state_fetcher.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_
#define CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_
+#include <algorithm>
#include <memory>
#include <set>
#include <string>
@@ -58,8 +59,10 @@ class BlacklistStateFetcher : public net::URLFetcherDelegate {
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
scoped_refptr<net::URLRequestContextGetter> parent_request_context_for_test_;
- // Extension id by URLFetcher.
- std::map<const net::URLFetcher*, std::string> requests_;
+ // URLFetcher -> (owned fetcher, extension id).
+ std::map<const net::URLFetcher*,
+ std::pair<std::unique_ptr<net::URLFetcher>, std::string>>
+ requests_;
// Callbacks by extension ID.
CallbackMultiMap callbacks_;

Powered by Google App Engine
This is Rietveld 408576698