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

Unified Diff: chromeos/network/shill_property_handler.cc

Issue 2466693002: [Re-land] Add network throttling as enterprise policy (Closed)
Patch Set: [Re-land] Add network throttling as enterprise policy Created 4 years, 1 month 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: chromeos/network/shill_property_handler.cc
diff --git a/chromeos/network/shill_property_handler.cc b/chromeos/network/shill_property_handler.cc
index a521385e6a47b15f0a12007c2ffcd39987192203..6292e281961631ae6db7053b685f877680c5dd42 100644
--- a/chromeos/network/shill_property_handler.cc
+++ b/chromeos/network/shill_property_handler.cc
@@ -229,6 +229,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),

Powered by Google App Engine
This is Rietveld 408576698