Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: components/metrics/call_stack_profile_collector.h

Issue 2438073002: Use movable types for CallStackProfile(s) to remove copying of data. (Closed)
Patch Set: added some comments about std::move Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/metrics/call_stack_profile_collector.h
diff --git a/components/metrics/call_stack_profile_collector.h b/components/metrics/call_stack_profile_collector.h
index f6a2ca1ce53925053a1e89ccbb4fb29cefa3486a..6eeb6a87b446a01423d3bba6c62e342b55d65412 100644
--- a/components/metrics/call_stack_profile_collector.h
+++ b/components/metrics/call_stack_profile_collector.h
@@ -25,7 +25,7 @@ class CallStackProfileCollector : public mojom::CallStackProfileCollector {
// mojom::CallStackProfileCollector:
void Collect(const CallStackProfileParams& params,
base::TimeTicks start_timestamp,
- const std::vector<CallStackProfile>& profiles) override;
+ std::vector<CallStackProfile> profiles) override;
private:
// Profile params are validated to come from this process. Profiles with a
« no previous file with comments | « base/profiler/stack_sampling_profiler_unittest.cc ('k') | components/metrics/call_stack_profile_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698