Index: components/metrics/call_stack_profile_collector.cc |
diff --git a/components/metrics/call_stack_profile_collector.cc b/components/metrics/call_stack_profile_collector.cc |
index 4cdd9ec83485819cc4959c75c2f7faf2c58fa987..1beb439e149eb3360bde752e8c300020f39f85b1 100644 |
--- a/components/metrics/call_stack_profile_collector.cc |
+++ b/components/metrics/call_stack_profile_collector.cc |
@@ -5,6 +5,7 @@ |
#include "components/metrics/call_stack_profile_collector.h" |
#include <utility> |
+#include <vector> |
#include "base/memory/ptr_util.h" |
#include "components/metrics/call_stack_profile_metrics_provider.h" |
@@ -36,8 +37,10 @@ void CallStackProfileCollector::Collect( |
if (params.process != expected_process_) |
return; |
+ CallStackProfileParams params_copy = params; |
+ params_copy.start_timestamp = start_timestamp; |
CallStackProfileMetricsProvider::ReceiveCompletedProfiles( |
- params, start_timestamp, std::move(profiles)); |
+ ¶ms_copy, std::move(profiles)); |
} |
} // namespace metrics |