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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index.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/sync_file_system/drive_backend/metadata_database_index.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
index 900876867b8354b7918398029fa227f75660eb55..0937aaf668e9e07e271b56e1ad989aadb598c44a 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
@@ -29,19 +29,12 @@ class ServiceMetadata;
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<> struct hash<sync_file_system::drive_backend::ParentIDAndTitle> {
std::size_t operator()(
const sync_file_system::drive_backend::ParentIDAndTitle& v) const {
return base::HashInts64(v.parent_id, hash<std::string>()(v.title));
}
};
-#elif defined(COMPILER_MSVC)
-inline size_t hash_value(
- const sync_file_system::drive_backend::ParentIDAndTitle& v) {
- return base::HashInts64(v.parent_id, hash_value(v.title));
-}
-#endif // COMPILER
} // namespace BASE_HASH_NAMESPACE

Powered by Google App Engine
This is Rietveld 408576698