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

Unified Diff: components/safe_browsing_db/v4_get_hash_protocol_manager.h

Issue 2284863002: Remove a use of stl_util in safe browsing. (Closed)
Patch Set: cleaner 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/safe_browsing_db/v4_get_hash_protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_get_hash_protocol_manager.h
diff --git a/components/safe_browsing_db/v4_get_hash_protocol_manager.h b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
index c80f2da773f2d1489438d41e85060667c1b4f8f6..d65e1a656db1f2c568983403c96b116198aa3f31 100644
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.h
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
@@ -14,6 +14,7 @@
#include <memory>
#include <string>
+#include <utility>
#include <vector>
#include "base/gtest_prod_util.h"
@@ -138,7 +139,9 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
private:
// Map of GetHash requests to parameters which created it.
- typedef base::hash_map<const net::URLFetcher*, FullHashCallback> HashRequests;
+ using HashRequests = base::hash_map<
+ const net::URLFetcher*,
+ std::pair<std::unique_ptr<net::URLFetcher>, FullHashCallback>>;
// The factory that controls the creation of V4GetHashProtocolManager.
// This is used by tests.
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_get_hash_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698