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

Unified Diff: ipc/ipc_message_utils.h

Issue 2825853002: Improvements to uses of base::SmallMap (Closed)
Patch Set: Code review 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: ipc/ipc_message_utils.h
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h
index 2d51c984aa0c0fdf005b355c989bfb6774b72bf0..9ca10b766d651e795597c83138a1a8240e86e578 100644
--- a/ipc/ipc_message_utils.h
+++ b/ipc/ipc_message_utils.h
@@ -899,10 +899,11 @@ template <typename NormalMap,
int kArraySize,
typename EqualKey,
typename MapInit>
-struct ParamTraits<base::SmallMap<NormalMap, kArraySize, EqualKey, MapInit> > {
- typedef base::SmallMap<NormalMap, kArraySize, EqualKey, MapInit> param_type;
- typedef typename param_type::key_type K;
- typedef typename param_type::data_type V;
+struct ParamTraits<base::small_map<NormalMap, kArraySize, EqualKey, MapInit>> {
+ using param + _type =
+ base::small_map<NormalMap, kArraySize, EqualKey, MapInit> param_type;
+ using K = typename param_type::key_type;
+ using V = typename param_type::data_type;
static void GetSize(base::PickleSizer* sizer, const param_type& p) {
GetParamSize(sizer, static_cast<int>(p.size()));
typename param_type::const_iterator iter;
@@ -936,7 +937,7 @@ struct ParamTraits<base::SmallMap<NormalMap, kArraySize, EqualKey, MapInit> > {
return true;
}
static void Log(const param_type& p, std::string* l) {
- l->append("<base::SmallMap>");
+ l->append("<base::small_map>");
}
};

Powered by Google App Engine
This is Rietveld 408576698