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

Unified Diff: webrtc/p2p/base/port.h

Issue 2709293004: RTCIceCandidatePairStats.nominated collected. (Closed)
Patch Set: Created 3 years, 10 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: webrtc/p2p/base/port.h
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
index f6900210f4417e35da6384eaeba7b54433d43b46..edfb5c934759e017a4b82b82b9df6aa22f08eee5 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -531,7 +531,7 @@ class Connection : public CandidatePairInterface,
void set_nomination(uint32_t value) { nomination_ = value; }
uint32_t remote_nomination() const { return remote_nomination_; }
- bool nominated() const { return remote_nomination_ > 0; }
+ bool nominated() const { return acked_nomination_ || remote_nomination_; }
hbos 2017/02/23 13:38:56 According to https://tools.ietf.org/html/rfc5245#s
Taylor Brandstetter 2017/02/24 05:38:31 webrtc-stats refers to the "nominated" flag from I
hbos 2017/02/24 11:09:13 Done.
// Public for unit tests.
void set_remote_nomination(uint32_t remote_nomination) {
remote_nomination_ = remote_nomination;

Powered by Google App Engine
This is Rietveld 408576698