Commit f1eb009c authored by tommi's avatar tommi Committed by Commit bot

Use StatsReport::Value::ToString instead of the value member variable direct.

This can be landed once the interface change has been made in WebRTC and rolled into Chromium (see here: https://webrtc-codereview.appspot.com/40139004/).

BUG=webrtc:2822

Review URL: https://codereview.chromium.org/875483002

Cr-Commit-Position: refs/heads/master@{#318694}
parent 54a734e8
......@@ -217,7 +217,7 @@ static base::DictionaryValue* GetDictValueStats(
for (const auto& v : report.values()) {
values->AppendString(v->display_name());
values->AppendString(v->value);
values->AppendString(v->ToString());
}
return dict;
......
......@@ -409,7 +409,7 @@ class StatsResponse : public webrtc::StatsObserver {
for (const auto& value : report.values) {
response->addStatistic(idx,
blink::WebString::fromUTF8(value->display_name()),
blink::WebString::fromUTF8(value->value));
blink::WebString::fromUTF8(value->ToString()));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment