| Index: services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc
|
| diff --git a/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc b/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc
|
| index fcf7e6e45c54d8112a269331a3eb2566cf241807..f0458fb8cc6eb6478309987dea249d68bfae2ec9 100644
|
| --- a/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc
|
| +++ b/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.cc
|
| @@ -22,6 +22,8 @@ EnumTraits<memory_instrumentation::mojom::DumpType,
|
| return memory_instrumentation::mojom::DumpType::EXPLICITLY_TRIGGERED;
|
| case base::trace_event::MemoryDumpType::PEAK_MEMORY_USAGE:
|
| return memory_instrumentation::mojom::DumpType::PEAK_MEMORY_USAGE;
|
| + case base::trace_event::MemoryDumpType::SUMMARY_ONLY:
|
| + return memory_instrumentation::mojom::DumpType::SUMMARY_ONLY;
|
| default:
|
| CHECK(false) << "Invalid type: " << static_cast<uint8_t>(type);
|
| // This should not be reached. Just return a random value.
|
| @@ -44,6 +46,9 @@ bool EnumTraits<memory_instrumentation::mojom::DumpType,
|
| case memory_instrumentation::mojom::DumpType::PEAK_MEMORY_USAGE:
|
| *out = base::trace_event::MemoryDumpType::PEAK_MEMORY_USAGE;
|
| break;
|
| + case memory_instrumentation::mojom::DumpType::SUMMARY_ONLY:
|
| + *out = base::trace_event::MemoryDumpType::SUMMARY_ONLY;
|
| + break;
|
| default:
|
| NOTREACHED() << "Invalid type: " << static_cast<uint8_t>(input);
|
| return false;
|
|
|