Index: omaha_request_params.cc |
diff --git a/omaha_request_params.cc b/omaha_request_params.cc |
index 03327b252657c1bd69ea4528f3741decadfbfef8..4cc5426a02a90e526071492dd42e5414875d14d8 100644 |
--- a/omaha_request_params.cc |
+++ b/omaha_request_params.cc |
@@ -92,6 +92,13 @@ bool OmahaRequestDeviceParams::SetDeviceTrack(const std::string& track) { |
return params.SetTrack(track); |
} |
+string OmahaRequestDeviceParams::GetDeviceTrack() { |
+ OmahaRequestDeviceParams params; |
+ // Note that params.app_track is an empty string if the value in |
+ // lsb-release file is invalid. See Init() for details. |
+ return params.Init("", "") ? params.app_track : ""; |
+} |
+ |
string OmahaRequestDeviceParams::GetLsbValue(const string& key, |
const string& default_value, |
ValueValidator validator) const { |