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

Unified Diff: ui/events/latency_info.cc

Issue 660173002: Type conversion fixes, ui/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion.cc ('k') | ui/events/test/event_generator.h » ('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 99879082e67c519ee51c8b241573e93d02bf2a5c..7b84c1c5159d38ad75443f1b1dea9f118d20a7d2 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -114,12 +114,13 @@ scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData(
latency.latency_components.begin();
it != latency.latency_components.end(); ++it) {
base::DictionaryValue* component_info = new base::DictionaryValue();
- component_info->SetDouble("comp_id", it->first.second);
- component_info->SetDouble("time", it->second.event_time.ToInternalValue());
+ component_info->SetDouble("comp_id", static_cast<double>(it->first.second));
+ component_info->SetDouble(
+ "time", static_cast<double>(it->second.event_time.ToInternalValue()));
component_info->SetDouble("count", it->second.event_count);
record_data->Set(GetComponentName(it->first.first), component_info);
}
- record_data->SetDouble("trace_id", latency.trace_id);
+ record_data->SetDouble("trace_id", static_cast<double>(latency.trace_id));
scoped_ptr<base::ListValue> coordinates(new base::ListValue());
for (size_t i = 0; i < latency.input_coordinates_size; i++) {
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion.cc ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698