| Index: media/cast/net/cast_transport_sender_impl.cc
|
| diff --git a/media/cast/net/cast_transport_sender_impl.cc b/media/cast/net/cast_transport_sender_impl.cc
|
| index 466c3a581ed2d8e58bc91c47a33a3ad91a12d2c2..6c746f485bf4806be73bbf1c17e6a4927d2937b0 100644
|
| --- a/media/cast/net/cast_transport_sender_impl.cc
|
| +++ b/media/cast/net/cast_transport_sender_impl.cc
|
| @@ -106,6 +106,16 @@ CastTransportSenderImpl::CastTransportSenderImpl(
|
| transport_->StartReceiving(
|
| base::Bind(&CastTransportSenderImpl::OnReceivedPacket,
|
| weak_factory_.GetWeakPtr()));
|
| + int wifi_options = 0;
|
| + if (options->HasKey("disable_wifi_scan")) {
|
| + wifi_options |= net::WIFI_OPTIONS_DISABLE_SCAN;
|
| + }
|
| + if (options->HasKey("media_streaming_mode")) {
|
| + wifi_options |= net::WIFI_OPTIONS_MEDIA_STREAMING_MODE;
|
| + }
|
| + if (wifi_options) {
|
| + wifi_options_autoreset_ = net::SetWifiOptions(wifi_options);
|
| + }
|
| }
|
| }
|
|
|
|
|