| Index: base/profiler/stack_sampling_profiler_unittest.cc
|
| diff --git a/base/profiler/stack_sampling_profiler_unittest.cc b/base/profiler/stack_sampling_profiler_unittest.cc
|
| index 3a59e6d2c300ff58534d4cac8b8e80a9ea1fd2c0..4fc70b8e050c90ab9004f859ef9fba9206ba5460 100644
|
| --- a/base/profiler/stack_sampling_profiler_unittest.cc
|
| +++ b/base/profiler/stack_sampling_profiler_unittest.cc
|
| @@ -6,6 +6,7 @@
|
| #include <stdint.h>
|
|
|
| #include <cstdlib>
|
| +#include <utility>
|
|
|
| #include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| @@ -309,8 +310,8 @@ void SynchronousUnloadNativeLibrary(NativeLibrary library) {
|
|
|
| // Called on the profiler thread when complete, to collect profiles.
|
| void SaveProfiles(CallStackProfiles* profiles,
|
| - const CallStackProfiles& pending_profiles) {
|
| - *profiles = pending_profiles;
|
| + CallStackProfiles pending_profiles) {
|
| + *profiles = std::move(pending_profiles);
|
| }
|
|
|
| // Called on the profiler thread when complete. Collects profiles produced by
|
| @@ -318,8 +319,8 @@ void SaveProfiles(CallStackProfiles* profiles,
|
| // the profiler is done.
|
| void SaveProfilesAndSignalEvent(CallStackProfiles* profiles,
|
| WaitableEvent* event,
|
| - const CallStackProfiles& pending_profiles) {
|
| - *profiles = pending_profiles;
|
| + CallStackProfiles pending_profiles) {
|
| + *profiles = std::move(pending_profiles);
|
| event->Signal();
|
| }
|
|
|
|
|