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

Unified Diff: dbus_service.cc

Issue 4103002: AU: Implement switching of tracks through SetTrack. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: review comments Created 10 years, 2 months 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
« no previous file with comments | « no previous file | omaha_request_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | omaha_request_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698