| Index: webrtc/media/base/mediachannel.h
 | 
| diff --git a/webrtc/media/base/mediachannel.h b/webrtc/media/base/mediachannel.h
 | 
| index 5e0f2d8bc2d6101058bf7a6193a5b618ca3fd5f7..ac00e84266900afeb20d6714d5038aca34700707 100644
 | 
| --- a/webrtc/media/base/mediachannel.h
 | 
| +++ b/webrtc/media/base/mediachannel.h
 | 
| @@ -82,14 +82,15 @@ static std::string VectorToString(const std::vector<T>& vals) {
 | 
|  }
 | 
|  
 | 
|  template <typename T>
 | 
| -static T MinPositive(T a, T b) {
 | 
| -  if (a <= 0) {
 | 
| +static rtc::Optional<T> OptionalMin(rtc::Optional<T> a, rtc::Optional<T> b) {
 | 
| +  if (!a) {
 | 
|      return b;
 | 
|    }
 | 
| -  if (b <= 0) {
 | 
| +  if (!b) {
 | 
|      return a;
 | 
|    }
 | 
| -  return std::min(a, b);
 | 
| +
 | 
| +  return rtc::Optional<T>(std::min(*a, *b));
 | 
|  }
 | 
|  
 | 
|  // Construction-time settings, passed to
 | 
| @@ -852,12 +853,12 @@ struct RtpSendParameters : RtpParameters<Codec> {
 | 
|      ost << "{";
 | 
|      ost << "codecs: " << VectorToString(this->codecs) << ", ";
 | 
|      ost << "extensions: " << VectorToString(this->extensions) << ", ";
 | 
| -    ost << "max_bandwidth_bps: " << max_bandwidth_bps << ", ";
 | 
| +    ost << "max_bitrate_bps: " << max_bitrate_bps << ", ";
 | 
|      ost << "}";
 | 
|      return ost.str();
 | 
|    }
 | 
|  
 | 
| -  int max_bandwidth_bps = -1;
 | 
| +  rtc::Optional<int> max_bitrate_bps;
 | 
|  };
 | 
|  
 | 
|  struct AudioSendParameters : RtpSendParameters<AudioCodec> {
 | 
| @@ -866,7 +867,7 @@ struct AudioSendParameters : RtpSendParameters<AudioCodec> {
 | 
|      ost << "{";
 | 
|      ost << "codecs: " << VectorToString(this->codecs) << ", ";
 | 
|      ost << "extensions: " << VectorToString(this->extensions) << ", ";
 | 
| -    ost << "max_bandwidth_bps: " << max_bandwidth_bps << ", ";
 | 
| +    ost << "max_bitrate_bps: " << max_bitrate_bps << ", ";
 | 
|      ost << "options: " << options.ToString();
 | 
|      ost << "}";
 | 
|      return ost.str();
 | 
| @@ -1076,7 +1077,7 @@ struct DataSendParameters : RtpSendParameters<DataCodec> {
 | 
|      // Options and extensions aren't used.
 | 
|      ost << "{";
 | 
|      ost << "codecs: " << VectorToString(codecs) << ", ";
 | 
| -    ost << "max_bandwidth_bps: " << max_bandwidth_bps;
 | 
| +    ost << "max_bitrate_bps: " << max_bitrate_bps;
 | 
|      ost << "}";
 | 
|      return ost.str();
 | 
|    }
 | 
| 
 |