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

Unified Diff: ui/events/latency_info.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/platform/platform_event_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/latency_info.cc
diff --git a/ui/events/latency_info.cc b/ui/events/latency_info.cc
index 33f51721478b5b13e657bb3e94449df3732e0154..5fdbb71ccf0ba3c71a2c1fb590d50d6596a16f24 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <string>
+#include <utility>
#include "base/json/json_writer.h"
#include "base/lazy_instance.h"
@@ -324,10 +325,11 @@ LatencyInfo::AsTraceableData() {
component_info->SetDouble("count", lc.second.event_count);
component_info->SetDouble("sequence_number",
lc.second.sequence_number);
- record_data->Set(GetComponentName(lc.first.first), component_info.Pass());
+ record_data->Set(GetComponentName(lc.first.first),
+ std::move(component_info));
}
record_data->SetDouble("trace_id", static_cast<double>(trace_id_));
- return LatencyInfoTracedValue::FromValue(record_data.Pass());
+ return LatencyInfoTracedValue::FromValue(std::move(record_data));
}
scoped_refptr<base::trace_event::ConvertableToTraceFormat>
@@ -340,7 +342,7 @@ LatencyInfo::CoordinatesAsTraceableData() {
coordinate_pair->SetDouble("y", input_coordinates_[i].y);
coordinates->Append(coordinate_pair.release());
}
- return LatencyInfoTracedValue::FromValue(coordinates.Pass());
+ return LatencyInfoTracedValue::FromValue(std::move(coordinates));
}
bool LatencyInfo::FindLatency(LatencyComponentType type,
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/platform/platform_event_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698