Lines Matching refs:attrs
172 map<string, string> attrs; in ParserHandlerStart() local
177 attrs[key] = value; in ParserHandlerStart()
183 if (attrs.find(kAttrAppId) != attrs.end()) in ParserHandlerStart()
184 app.id = attrs[kAttrAppId]; in ParserHandlerStart()
185 if (attrs.find(kAttrCohort) != attrs.end()) in ParserHandlerStart()
186 app.cohort = attrs[kAttrCohort]; in ParserHandlerStart()
187 if (attrs.find(kAttrCohortHint) != attrs.end()) in ParserHandlerStart()
188 app.cohorthint = attrs[kAttrCohortHint]; in ParserHandlerStart()
189 if (attrs.find(kAttrCohortName) != attrs.end()) in ParserHandlerStart()
190 app.cohortname = attrs[kAttrCohortName]; in ParserHandlerStart()
194 data->apps.back().updatecheck_status = attrs[kAttrStatus]; in ParserHandlerStart()
196 data->updatecheck_poll_interval = attrs[kAttrPollInterval]; in ParserHandlerStart()
199 for (const auto& attr : attrs) { in ParserHandlerStart()
205 data->daystart_elapsed_days = attrs[kAttrElapsedDays]; in ParserHandlerStart()
206 data->daystart_elapsed_seconds = attrs[kAttrElapsedSeconds]; in ParserHandlerStart()
210 data->apps.back().url_codebase.push_back(attrs[kAttrCodeBase]); in ParserHandlerStart()
215 data->apps.back().packages.push_back({.name = attrs[kAttrName], in ParserHandlerStart()
216 .size = attrs[kAttrSize], in ParserHandlerStart()
217 .hash = attrs[kAttrHashSha256]}); in ParserHandlerStart()
221 data->apps.back().manifest_version = attrs[kAttrVersion]; in ParserHandlerStart()
225 if (attrs[kAttrEvent] == kValPostInstall && !data->apps.empty()) { in ParserHandlerStart()
226 data->apps.back().action_postinstall_attrs = std::move(attrs); in ParserHandlerStart()
858 map<string, string> attrs; in ParseParams() local
874 if (!app.action_postinstall_attrs.empty() && attrs.empty()) { in ParseParams()
875 attrs = app.action_postinstall_attrs; in ParseParams()
891 if (attrs.empty()) { in ParseParams()
898 output_object->more_info_url = attrs[kAttrMoreInfo]; in ParseParams()
899 output_object->prompt = ParseBool(attrs[kAttrPrompt]); in ParseParams()
900 output_object->deadline = attrs[kAttrDeadline]; in ParseParams()
901 output_object->max_days_to_scatter = ParseInt(attrs[kAttrMaxDaysToScatter]); in ParseParams()
903 ParseBool(attrs[kAttrDisableP2PForDownloading]); in ParseParams()
905 ParseBool(attrs[kAttrDisableP2PForSharing]); in ParseParams()
906 output_object->public_key_rsa = attrs[kAttrPublicKeyRsa]; in ParseParams()
908 string max = attrs[kAttrMaxFailureCountPerUrl]; in ParseParams()
913 ParseBool(attrs[kAttrDisablePayloadBackoff]); in ParseParams()
914 output_object->powerwash_required = ParseBool(attrs[kAttrPowerwash]); in ParseParams()
1412 bool OmahaRequestAction::PersistEolInfo(const map<string, string>& attrs) { in PersistEolInfo() argument
1415 auto eol_date_attr = attrs.find(kAttrEolDate); in PersistEolInfo()
1416 if (eol_date_attr != attrs.end()) { in PersistEolInfo()