update_engine: move autoupdate_token to cohorthint attribute
If policy DeviceQuickFixBuildToken is set and is not empty then set "cohorthint" attribute
to the value of DeviceQuickFixBuildToken in update request. Takes precedence over kPrefsOmahaCohortHint pref.
BUG=chromium:932465
TEST=./build_packages --board=amd64-generic && \
cros_run_unit_tests --board=amd64-generic --packages update_engine
Change-Id: Ia4143b0854742ec22a535ce75b3b54a937a47b5a
diff --git a/omaha_request_builder_xml.h b/omaha_request_builder_xml.h
index 0ba44b8..495ddd7 100644
--- a/omaha_request_builder_xml.h
+++ b/omaha_request_builder_xml.h
@@ -161,7 +161,8 @@
// |arg_name| and |prefs_key|, if any. The return value is suitable to
// concatenate to the list of arguments and includes a space at the end.
std::string GetCohortArg(const std::string arg_name,
- const std::string prefs_key) const;
+ const std::string prefs_key,
+ const std::string override_value = "") const;
// Returns an XML ping element if any of the elapsed days need to be
// sent, or an empty string otherwise.