Chromium Code Reviews| Index: chromeos/network/network_state_handler.cc |
| diff --git a/chromeos/network/network_state_handler.cc b/chromeos/network/network_state_handler.cc |
| index bf0681c27eb8410e736912e1161bcbe190a70756..89a5830047d52d36c094b06e0412dbaddce2c21a 100644 |
| --- a/chromeos/network/network_state_handler.cc |
| +++ b/chromeos/network/network_state_handler.cc |
| @@ -5,6 +5,7 @@ |
| #include "chromeos/network/network_state_handler.h" |
| #include <stddef.h> |
| +#include <utility> |
|
Andrew T Wilson (Slow)
2016/10/21 13:27:30
Why is this here?
kirtika1
2016/10/23 00:04:49
These and other includes were added to silence cpp
|
| #include "base/bind.h" |
| #include "base/format_macros.h" |
| @@ -15,6 +16,7 @@ |
| #include "base/logging.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/metrics/histogram_macros.h" |
| +#include "base/strings/string_number_conversions.h" |
| #include "base/strings/string_util.h" |
| #include "base/strings/stringprintf.h" |
| #include "base/values.h" |
| @@ -384,6 +386,18 @@ void NetworkStateHandler::SetWakeOnLanEnabled(bool enabled) { |
| shill_property_handler_->SetWakeOnLanEnabled(enabled); |
| } |
| +void NetworkStateHandler::SetNetworkThrottlingStatus( |
| + bool enabled, |
| + uint32_t upload_rate_kbits, |
| + uint32_t download_rate_kbits) { |
| + NET_LOG_EVENT("SetNetworkThrottlingStatus", |
| + enabled ? ("true :" + base::IntToString(upload_rate_kbits) + |
| + " , " + base::IntToString(download_rate_kbits)) |
|
Andrew T Wilson (Slow)
2016/10/21 13:27:30
nit, typically put a space after the comma but not
kirtika1
2016/10/23 00:04:49
Done.
|
| + : "false"); |
| + shill_property_handler_->SetNetworkThrottlingStatus( |
| + enabled, upload_rate_kbits, download_rate_kbits); |
| +} |
| + |
| const NetworkState* NetworkStateHandler::GetEAPForEthernet( |
| const std::string& service_path) { |
| const NetworkState* network = GetNetworkState(service_path); |