Chromium Code Reviews| 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..332db14ad7a3cf4567c0b7a27493214ef8b79175 100644 |
| --- a/base/profiler/stack_sampling_profiler_unittest.cc |
| +++ b/base/profiler/stack_sampling_profiler_unittest.cc |
| @@ -309,8 +309,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); |
|
Mike Wittman
2016/10/21 18:05:29
IWYU: <utility>
... and throughout this CL
bcwhite
2016/10/24 13:17:45
Done.
|
| } |
| // Called on the profiler thread when complete. Collects profiles produced by |
| @@ -318,8 +318,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(); |
| } |