| Index: components/sync/protocol/proto_memory_estimations.cc
|
| diff --git a/components/sync/protocol/proto_memory_estimations.cc b/components/sync/protocol/proto_memory_estimations.cc
|
| index b7402c49ccdf4b797b03999ffbf5892cc6f4a676..5d1ffa6540f4b54f86a53eff62c1c6e483a5781a 100644
|
| --- a/components/sync/protocol/proto_memory_estimations.cc
|
| +++ b/components/sync/protocol/proto_memory_estimations.cc
|
| @@ -47,11 +47,11 @@ class MemoryUsageVisitor {
|
| memory_usage_ += sizeof(F) + EstimateMemoryUsage(field);
|
| }
|
|
|
| - // Integral types
|
| + // Arithmetic types
|
| template <class P, class F>
|
| - typename std::enable_if<std::is_integral<F>::value>::type
|
| + typename std::enable_if<std::is_arithmetic<F>::value>::type
|
| Visit(const P&, const char* field_name, const F& field) {
|
| - // Integral fields (integers, floats & bool) don't allocate.
|
| + // Arithmetic fields (integers, floats & bool) don't allocate.
|
| }
|
|
|
| // std::string
|
| @@ -78,15 +78,15 @@ class MemoryUsageVisitor {
|
| }
|
| }
|
|
|
| - // RepeatedField<integral type>
|
| + // RepeatedField<arithmetic type>
|
| template <class P, class F>
|
| - typename std::enable_if<std::is_integral<F>::value>::type Visit(
|
| + typename std::enable_if<std::is_arithmetic<F>::value>::type Visit(
|
| const P&,
|
| const char* field_name,
|
| const google::protobuf::RepeatedField<F>& fields) {
|
| memory_usage_ += fields.SpaceUsedExcludingSelf();
|
| - // Integral fields (integers, floats & bool) don't allocate, so no
|
| - // point in iterating over |fields|.
|
| + // Arithmetic fields (integers, floats & bool) don't allocate, so no point
|
| + // in iterating over |fields|.
|
| }
|
|
|
| // RepeatedField<std::string>
|
|
|