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

Unified Diff: content/renderer/pepper/v8_var_converter.cc

Issue 623383002: Align base::hash_map with C++11, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hash-1
Patch Set: clean up stale includes 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
« no previous file with comments | « content/common/host_shared_bitmap_manager.h ('k') | mojo/edk/system/channel_endpoint_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/v8_var_converter.cc
diff --git a/content/renderer/pepper/v8_var_converter.cc b/content/renderer/pepper/v8_var_converter.cc
index bb0f0dd45bf9049dac5cc26283e803f823483a20..42d744d28729db928fddb3e532b4b59e8f68c9a6 100644
--- a/content/renderer/pepper/v8_var_converter.cc
+++ b/content/renderer/pepper/v8_var_converter.cc
@@ -47,21 +47,16 @@ struct HashedHandle {
HashedHandle(v8::Handle<v8::Object> h) : handle(h) {}
size_t hash() const { return handle->GetIdentityHash(); }
bool operator==(const HashedHandle& h) const { return handle == h.handle; }
- bool operator<(const HashedHandle& h) const { return hash() < h.hash(); }
v8::Handle<v8::Object> handle;
};
} // namespace
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template <>
struct hash<HashedHandle> {
size_t operator()(const HashedHandle& handle) const { return handle.hash(); }
};
-#elif defined(COMPILER_MSVC)
-inline size_t hash_value(const HashedHandle& handle) { return handle.hash(); }
-#endif
} // namespace BASE_HASH_NAMESPACE
namespace content {
« no previous file with comments | « content/common/host_shared_bitmap_manager.h ('k') | mojo/edk/system/channel_endpoint_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698