Chromium Code Reviews| Index: chromeos/network/shill_property_handler.cc |
| diff --git a/chromeos/network/shill_property_handler.cc b/chromeos/network/shill_property_handler.cc |
| index a521385e6a47b15f0a12007c2ffcd39987192203..11ec7d08355ea4006cc54f3813072c724ea4b1a4 100644 |
| --- a/chromeos/network/shill_property_handler.cc |
| +++ b/chromeos/network/shill_property_handler.cc |
| @@ -6,7 +6,9 @@ |
| #include <stddef.h> |
| +#include <memory> |
|
Andrew T Wilson (Slow)
2016/10/21 13:27:31
You don't seem to have added any code that require
stevenjb
2016/10/21 19:41:21
<memory> is in the header so we don't need to repe
kirtika1
2016/10/23 00:04:49
Done.
|
| #include <sstream> |
| +#include <utility> |
| #include "base/bind.h" |
| #include "base/format_macros.h" |
| @@ -229,6 +231,18 @@ void ShillPropertyHandler::SetWakeOnLanEnabled(bool enabled) { |
| network_handler::ErrorCallback())); |
| } |
| +void ShillPropertyHandler::SetNetworkThrottlingStatus( |
| + bool throttling_enabled, |
| + uint32_t upload_rate_kbits, |
| + uint32_t download_rate_kbits) { |
| + shill_manager_->SetNetworkThrottlingStatus( |
| + throttling_enabled, upload_rate_kbits, download_rate_kbits, |
| + base::Bind(&base::DoNothing), |
| + base::Bind(&network_handler::ShillErrorCallbackFunction, |
| + "SetNetworkThrottlingStatus failed", "Manager", |
| + network_handler::ErrorCallback())); |
| +} |
| + |
| void ShillPropertyHandler::RequestScan() const { |
| shill_manager_->RequestScan( |
| "", base::Bind(&base::DoNothing), |