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

Unified Diff: chrome/browser/chromeos/net/wake_on_wifi_manager.cc

Issue 1121713003: Always send the wake-on-wifi setting when the network device list is updated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/wake_on_wifi_manager.cc
diff --git a/chrome/browser/chromeos/net/wake_on_wifi_manager.cc b/chrome/browser/chromeos/net/wake_on_wifi_manager.cc
index 842acc54862ee2d0486a36efdf2381ff4cbed43c..37e692403037c58ce210481529411f91c5c93bb7 100644
--- a/chrome/browser/chromeos/net/wake_on_wifi_manager.cc
+++ b/chrome/browser/chromeos/net/wake_on_wifi_manager.cc
@@ -307,14 +307,17 @@ void WakeOnWifiManager::GetDevicePropertiesCallback(
return;
}
+ // We always resend the wake on wifi setting unless it hasn't been set yet.
+ // This covers situations where shill restarts or ends up recreating the wifi
+ // device (crbug.com/475199).
+ if (current_feature_ != INVALID)
+ HandleWakeOnWifiFeatureUpdated();
+
if (wifi_properties_received_)
return;
wifi_properties_received_ = true;
- if (current_feature_ != INVALID)
- HandleWakeOnWifiFeatureUpdated();
-
NetworkHandler::Get()
->network_device_handler()
->RemoveAllWifiWakeOnPacketConnections(base::Bind(&base::DoNothing),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698