OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h" | 5 #include "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h" |
6 | 6 |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" | 9 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" |
| 10 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | |
12 #include "chromeos/network/network_device_handler.h" | 12 #include "chromeos/network/network_device_handler.h" |
13 #include "components/gcm_driver/gcm_driver.h" | 13 #include "components/gcm_driver/gcm_driver.h" |
14 #include "components/gcm_driver/gcm_profile_service.h" | 14 #include "components/gcm_driver/gcm_profile_service.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 WakeOnWifiConnectionObserver::WakeOnWifiConnectionObserver( | 18 WakeOnWifiConnectionObserver::WakeOnWifiConnectionObserver( |
19 Profile* profile, | 19 Profile* profile, |
20 bool wifi_properties_received, | 20 bool wifi_properties_received, |
21 WakeOnWifiManager::WakeOnWifiFeature feature, | 21 WakeOnWifiManager::WakeOnWifiFeature feature, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void WakeOnWifiConnectionObserver::RemoveWakeOnPacketConnection() { | 82 void WakeOnWifiConnectionObserver::RemoveWakeOnPacketConnection() { |
83 if (!WakeOnWifiManager::IsWakeOnPacketEnabled(feature_)) | 83 if (!WakeOnWifiManager::IsWakeOnPacketEnabled(feature_)) |
84 return; | 84 return; |
85 network_device_handler_ | 85 network_device_handler_ |
86 ->RemoveWifiWakeOnPacketConnection(ip_endpoint_, | 86 ->RemoveWifiWakeOnPacketConnection(ip_endpoint_, |
87 base::Bind(&base::DoNothing), | 87 base::Bind(&base::DoNothing), |
88 network_handler::ErrorCallback()); | 88 network_handler::ErrorCallback()); |
89 } | 89 } |
90 | 90 |
91 } // namespace chromeos | 91 } // namespace chromeos |
OLD | NEW |