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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.h

Issue 612323010: Align base::hash_map with C++11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try a different tack for C++ insanity Created 6 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: chrome/browser/safe_browsing/protocol_manager.h
diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h
index 91693ae9fbb1b01a8c2b9a703bf0fa2e25748c3c..47d20fedb3690a77bfcff1e94c29f031f165a6b0 100644
--- a/chrome/browser/safe_browsing/protocol_manager.h
+++ b/chrome/browser/safe_browsing/protocol_manager.h
@@ -36,19 +36,6 @@ class URLFetcher;
class URLRequestContextGetter;
} // namespace net
-#if defined(COMPILER_GCC)
-// Allows us to use URLFetchers in a hash_map with gcc (MSVC is okay without
-// specifying this).
-namespace BASE_HASH_NAMESPACE {
-template<>
-struct hash<const net::URLFetcher*> {
- size_t operator()(const net::URLFetcher* fetcher) const {
- return reinterpret_cast<size_t>(fetcher);
- }
-};
-}
-#endif
-
class SBProtocolManagerFactory;
class SafeBrowsingProtocolManagerDelegate;

Powered by Google App Engine
This is Rietveld 408576698