| Index: chromeos/dbus/shill_manager_client.cc
|
| diff --git a/chromeos/dbus/shill_manager_client.cc b/chromeos/dbus/shill_manager_client.cc
|
| index 2531d83477b42b766612ca5e9c4df0f056d98eab..c52eb02b77dfeaf1660d66e9dedaefd7144e06b9 100644
|
| --- a/chromeos/dbus/shill_manager_client.cc
|
| +++ b/chromeos/dbus/shill_manager_client.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chromeos/dbus/shill_manager_client.h"
|
|
|
| +#include <memory>
|
| +
|
| #include "base/bind.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| @@ -90,6 +92,22 @@ class ShillManagerClientImpl : public ShillManagerClient {
|
| error_callback);
|
| }
|
|
|
| + void SetNetworkThrottlingStatus(
|
| + const bool enabled,
|
| + const uint32_t upload_rate_kbits,
|
| + const uint32_t download_rate_kbits,
|
| + const base::Closure& callback,
|
| + const ErrorCallback& error_callback) override {
|
| + dbus::MethodCall method_call(shill::kFlimflamManagerInterface,
|
| + shill::kSetNetworkThrottlingFunction);
|
| + dbus::MessageWriter writer(&method_call);
|
| + writer.AppendBool(enabled);
|
| + writer.AppendUint32(upload_rate_kbits);
|
| + writer.AppendUint32(download_rate_kbits);
|
| + helper_->CallVoidMethodWithErrorCallback(&method_call, callback,
|
| + error_callback);
|
| + }
|
| +
|
| void DisableTechnology(const std::string& type,
|
| const base::Closure& callback,
|
| const ErrorCallback& error_callback) override {
|
|
|