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

Unified Diff: media/cast/net/cast_transport_sender_impl.cc

Issue 566243005: Cast: Allow extension to control wifi options on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: 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 92fef614f64b57175c63647039955bd81d84bbba..6d9f754aaa054d7f730705b628f39dc6f50dbbf5 100644
--- a/media/cast/net/cast_transport_sender_impl.cc
+++ b/media/cast/net/cast_transport_sender_impl.cc
@@ -86,6 +86,16 @@ CastTransportSenderImpl::CastTransportSenderImpl(
transport_->StartReceiving(
base::Bind(&CastTransportSenderImpl::OnReceivedPacket,
weak_factory_.GetWeakPtr()));
+ int wifi_options;
+ if (options->HasKey("DISABLE_WIFI_SCAN")) {
Alpha Left Google 2014/09/15 20:12:29 Note that the pacer options are using lowercase na
hubbe 2014/09/15 23:11:49 Done.
+ 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);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698