| Index: dbus_service.cc
|
| diff --git a/dbus_service.cc b/dbus_service.cc
|
| index 447a900b196052f23f417a8a601638f386789a88..5a46b516f6029c0e93a5f99f7b6571e54749f62c 100644
|
| --- a/dbus_service.cc
|
| +++ b/dbus_service.cc
|
| @@ -9,6 +9,7 @@
|
| #include <base/logging.h>
|
|
|
| #include "update_engine/marshal.glibmarshal.h"
|
| +#include "update_engine/omaha_request_params.h"
|
| #include "update_engine/utils.h"
|
|
|
| using std::string;
|
| @@ -111,7 +112,12 @@ gboolean update_engine_service_set_track(UpdateEngineService* self,
|
| gchar* track,
|
| GError **error) {
|
| if (track) {
|
| - LOG(INFO) << "TODO: Setting track to: " << track;
|
| + LOG(INFO) << "Setting track to: " << track;
|
| + if (!chromeos_update_engine::OmahaRequestDeviceParams::SetDeviceTrack(
|
| + track)) {
|
| + *error = NULL;
|
| + return FALSE;
|
| + }
|
| }
|
| return TRUE;
|
| }
|
|
|