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

Unified Diff: webrtc/p2p/base/dtlstransportchannel.cc

Issue 2623473004: Replace all use of the VERIFY macro. (Closed)
Patch Set: Tweaks after reviewing diff to master. 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/dtlstransportchannel.cc
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc
index 575ec327b982dbe3c61e3f7a6e98e35a4f6e9a00..f46784a98cf4d15e074d9ad343f2e28fabf74a6a 100644
--- a/webrtc/p2p/base/dtlstransportchannel.cc
+++ b/webrtc/p2p/base/dtlstransportchannel.cc
@@ -354,7 +354,9 @@ bool DtlsTransport::SetSrtpCryptoSuites(const std::vector<int>& ciphers) {
return true;
}
- if (!VERIFY(dtls_state() == DTLS_TRANSPORT_NEW)) {
+ // TODO(nisse): Bad style of error handling. Should it be a DCHECK or not?
nisse-webrtc 2017/02/07 10:48:15 And what to do about this case?
kwiberg-webrtc 2017/02/07 11:45:08 Dunno. The code should either handle the error, or
nisse-webrtc 2017/02/07 13:52:40 After looking at the other code in this file, it s
+ RTC_DCHECK(dtls_state() == DTLS_TRANSPORT_NEW);
+ if (dtls_state() != DTLS_TRANSPORT_NEW) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698