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

Unified Diff: omaha_request_params.h

Issue 3007020: Add a hardware_class attribute (for HWID, HWQual ID) to the Omaha request. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: fix typo Created 10 years, 5 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_action_unittest.cc ('k') | omaha_request_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_request_params.h
diff --git a/omaha_request_params.h b/omaha_request_params.h
index 9c372584d5a176fb966f344704ef5d547a547e88..551a3a3d774924f54b82430737f8d02e69be1b82 100644
--- a/omaha_request_params.h
+++ b/omaha_request_params.h
@@ -27,6 +27,7 @@ struct OmahaRequestParams {
const std::string& in_app_version,
const std::string& in_app_lang,
const std::string& in_app_track,
+ const std::string& in_hardware_class,
const bool in_delta_okay,
const std::string& in_update_url)
: os_platform(in_os_platform),
@@ -37,6 +38,7 @@ struct OmahaRequestParams {
app_version(in_app_version),
app_lang(in_app_lang),
app_track(in_app_track),
+ hardware_class(in_hardware_class),
delta_okay(in_delta_okay),
update_url(in_update_url) {}
@@ -48,6 +50,7 @@ struct OmahaRequestParams {
std::string app_version;
std::string app_lang;
std::string app_track;
+ std::string hardware_class; // Hardware Qualification ID of the client
bool delta_okay; // If this client can accept a delta
std::string update_url;
@@ -82,6 +85,10 @@ class OmahaRequestDeviceParams : public OmahaRequestParams {
// Gets the machine type (e.g. "i686").
std::string GetMachineType() const;
+ // Returns the hardware qualification ID of the system, or empty
+ // string if the HWID is unavailable.
+ std::string GetHardwareClass() const;
+
// When reading files, prepend root_ to the paths. Useful for testing.
std::string root_;
« no previous file with comments | « omaha_request_action_unittest.cc ('k') | omaha_request_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698