Chromium Code Reviews| Index: remoting/protocol/webrtc_transport.cc |
| diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc |
| index c9c88c4e5a4716067ddbc4cc91bdbdc07e46c639..94cdc822484a0c20166ced623e0ddb963fbfc558 100644 |
| --- a/remoting/protocol/webrtc_transport.cc |
| +++ b/remoting/protocol/webrtc_transport.cc |
| @@ -472,6 +472,17 @@ void WebrtcTransport::OnLocalSessionDescriptionCreated( |
| SdpMessage sdp_message(description_sdp); |
| UpdateCodecParameters(&sdp_message, /*incoming=*/false); |
| description_sdp = sdp_message.ToString(); |
| + { |
|
Sergey Ulanov
2017/02/21 18:47:03
remove these braces, I don't think they add anythi
|
| + webrtc::SdpParseError err; |
|
Sergey Ulanov
2017/02/21 18:47:03
s/err/error/
kwiberg-chromium
2017/02/21 21:32:41
There's already a function argument called error--
Sergey Ulanov
2017/02/21 21:49:27
Maybe call it parse_error?
If you keep the braces
kwiberg-chromium
2017/02/21 21:56:54
Yes. We *need* to have the braces *or* a variable
Sergey Ulanov
2017/02/21 22:31:52
Sorry I didn't pay full attention to what you wrot
kwiberg-chromium
2017/02/21 23:03:31
I'll go with your preference since this is your co
|
| + description.reset(webrtc::CreateSessionDescription(description->type(), |
| + description_sdp, &err)); |
| + if (!description) { |
| + LOG(ERROR) << "Failed to parse the session description: " |
| + << err.description << " line: " << err.line; |
| + Close(CHANNEL_CONNECTION_ERROR); |
| + return; |
| + } |
| + } |
| // Format and send the session description to the peer. |
| std::unique_ptr<XmlElement> transport_info( |