 Chromium Code Reviews
 Chromium Code Reviews Issue 2623473004:
  Replace all use of the VERIFY macro.  (Closed)
    
  
    Issue 2623473004:
  Replace all use of the VERIFY macro.  (Closed) 
  | Index: webrtc/pc/webrtcsdp.cc | 
| diff --git a/webrtc/pc/webrtcsdp.cc b/webrtc/pc/webrtcsdp.cc | 
| index 11eefe5c3d5098f88ce8a884c5535d7dd14248cf..d5110fc8542a37570a9b6ece207226935ab98f27 100644 | 
| --- a/webrtc/pc/webrtcsdp.cc | 
| +++ b/webrtc/pc/webrtcsdp.cc | 
| @@ -1376,7 +1376,9 @@ void BuildMediaDescription(const ContentInfo* content_info, | 
| cricket::ConnectionRole role = | 
| transport_info->description.connection_role; | 
| std::string dtls_role_str; | 
| - VERIFY(cricket::ConnectionRoleToString(role, &dtls_role_str)); | 
| + const bool success = | 
| + cricket::ConnectionRoleToString(role, &dtls_role_str); | 
| + RTC_DCHECK(success); | 
| 
kwiberg-webrtc
2017/02/07 14:08:05
:-)
 | 
| InitAttrLine(kAttributeSetup, &os); | 
| os << kSdpDelimiterColon << dtls_role_str; | 
| AddLine(os.str(), message); |