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

Unified Diff: dbus_service.cc

Issue 4181001: AU: Implement getting of tracks through GetTrack. (Closed) Base URL: http://git.chromium.org/git/update_engine.git
Patch Set: sort by names 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 | « dbus_service.h ('k') | 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 5a46b516f6029c0e93a5f99f7b6571e54749f62c..a27fd1892b260fe26b862b65a67c840b3c640154 100644
--- a/dbus_service.cc
+++ b/dbus_service.cc
@@ -99,6 +99,15 @@ gboolean update_engine_service_get_status(UpdateEngineService* self,
return TRUE;
}
+gboolean update_engine_service_get_track(UpdateEngineService* self,
+ gchar** track,
+ GError **error) {
+ string track_str =
+ chromeos_update_engine::OmahaRequestDeviceParams::GetDeviceTrack();
+ *track = strdup(track_str.c_str());
+ return TRUE;
+}
+
gboolean update_engine_service_reboot_if_needed(UpdateEngineService* self,
GError **error) {
if (!self->update_attempter_->RebootIfNeeded()) {
« no previous file with comments | « dbus_service.h ('k') | omaha_request_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698