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

Unified Diff: components/prefs/pref_value_store.h

Issue 2797793002: Remove base::underlying_type, replace uses with std::underlying_type (Closed)
Patch Set: underlyingtype: rm-tests Created 3 years, 8 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: components/prefs/pref_value_store.h
diff --git a/components/prefs/pref_value_store.h b/components/prefs/pref_value_store.h
index f6c9c3725a3a2dc4a16b1893be4d9e29199ced80..eeab3062fbe293b039c6c2f69c8f6421c4b69385 100644
--- a/components/prefs/pref_value_store.h
+++ b/components/prefs/pref_value_store.h
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include <type_traits>
#include <vector>
#include "base/callback.h"
@@ -263,7 +264,7 @@ template <>
struct hash<PrefValueStore::PrefStoreType> {
size_t operator()(PrefValueStore::PrefStoreType type) const {
return std::hash<
- base::underlying_type<PrefValueStore::PrefStoreType>::type>()(type);
+ std::underlying_type<PrefValueStore::PrefStoreType>::type>()(type);
}
};
« no previous file with comments | « components/ntp_snippets/content_suggestions_metrics.cc ('k') | mojo/public/cpp/bindings/lib/bindings_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698