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

Unified Diff: omaha_request_params.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 | « omaha_request_params.h ('k') | update_engine.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « omaha_request_params.h ('k') | update_engine.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698