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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index.h

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
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 9c80060d8fe7cda7a9b1a589566e6fbd4d8520ac..2eca8cae4e988eadc3daca7422a9fbd8ce1faa59 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
« no previous file with comments | « chrome/browser/browsing_data/canonical_cookie_hash.h ('k') | chrome/browser/ui/zoom/chrome_zoom_level_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698