| Index: components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc
|
| diff --git a/components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc b/components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc
|
| index 14db487f452cd61545af8e5f7f617a98f6590234..22265a6182249befd8498621825a99c7f69d02d1 100644
|
| --- a/components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc
|
| +++ b/components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc
|
| @@ -49,9 +49,9 @@ class CallStackProfileCollectorTestImpl
|
| callback.Run(in);
|
| }
|
|
|
| - void BounceProfile(const base::StackSamplingProfiler::CallStackProfile& in,
|
| + void BounceProfile(base::StackSamplingProfiler::CallStackProfile in,
|
| const BounceProfileCallback& callback) override {
|
| - callback.Run(in);
|
| + callback.Run(std::move(in));
|
| }
|
|
|
| void BounceTrigger(CallStackProfileParams::Trigger in,
|
| @@ -263,7 +263,7 @@ TEST_F(CallStackProfileStructTraitsTest, Profile) {
|
|
|
| Profile output;
|
| EXPECT_EQ(input.expect_success,
|
| - proxy_->BounceProfile(input.profile, &output));
|
| + proxy_->BounceProfile(input.profile.CopyForTesting(), &output));
|
|
|
| if (!input.expect_success)
|
| continue;
|
|
|