• Home
  • Raw
  • Download

Lines Matching refs:app

472   for (const auto& app : parser_data.apps) {  in StorePingReply()  local
473 auto it = params->dlc_apps_params().find(app.id); in StorePingReply()
597 bool ParsePackage(OmahaParserData::App* app, in ParsePackage() argument
601 if (app->updatecheck.status.empty() || in ParsePackage()
602 app->updatecheck.status == kValNoUpdate) { in ParsePackage()
603 if (!app->packages.empty()) { in ParsePackage()
610 if (app->packages.empty()) { in ParsePackage()
615 if (app->urls.empty()) { in ParsePackage()
620 for (size_t i = 0; i < app->packages.size(); i++) { in ParsePackage()
621 const auto& package = app->packages[i]; in ParsePackage()
629 out_package.app_id = app->id; in ParsePackage()
631 for (const auto& url : app->urls) { in ParsePackage()
647 if (i < app->postinstall_action->metadata_sizes.size()) in ParsePackage()
648 base::StringToUint64(app->postinstall_action->metadata_sizes[i], in ParsePackage()
651 if (i < app->postinstall_action->metadata_signature_rsas.size()) in ParsePackage()
653 app->postinstall_action->metadata_signature_rsas[i]; in ParsePackage()
664 if (i < app->postinstall_action->is_delta_payloads.size()) in ParsePackage()
666 ParseBool(app->postinstall_action->is_delta_payloads[i]); in ParsePackage()
772 [&params](const OmahaParserData::App& app) { in ParseResponse() argument
773 return app.id == params->GetAppId(); in ParseResponse()
832 for (auto& app : parser_data->apps) { in ParseResponse() local
837 bool can_exclude = !params->is_install() && params->IsDlcAppId(app.id); in ParseResponse()
838 if (!ParsePackage(&app, output_object, can_exclude, completer)) in ParseResponse()
850 for (const auto& app : parser_data->apps) { in ParseStatus() local
851 const string& status = app.updatecheck.status; in ParseStatus()
855 if (params->IsDlcAppId(app.id)) { in ParseStatus()
856 LOG(INFO) << "No update for App " << app.id in ParseStatus()
858 params->SetDlcNoUpdate(app.id); in ParseStatus()
862 LOG(INFO) << "No update for App " << app.id; in ParseStatus()
866 if (ParseBool(app.postinstall_action->no_update)) { in ParseStatus()
869 LOG(INFO) << "Update to self for App " << app.id; in ParseStatus()
874 params->GetAppId() == app.id) { in ParseStatus()
876 LOG(INFO) << "No payload (and ignore) for App " << app.id; in ParseStatus()
896 for (const auto& app : parser_data->apps) { in ParseParams() local
897 if (app.id == params->GetAppId() && app.postinstall_action) { in ParseParams()
898 main_app = &app; in ParseParams()
900 if (app.manifest.version != params->app_version()) { in ParseParams()
901 LOG(WARNING) << "An app has a version: " << app.manifest.version in ParseParams()
906 if (app.postinstall_action && main_app == nullptr) { in ParseParams()
907 main_app = &app; in ParseParams()
917 const OmahaParserData::App& app = *main_app; in ParseParams() local
919 output_object->version = app.manifest.version; in ParseParams()
920 output_object->more_info_url = app.postinstall_action->more_info_url; in ParseParams()
921 output_object->prompt = ParseBool(app.postinstall_action->prompt); in ParseParams()
922 output_object->deadline = app.postinstall_action->deadline; in ParseParams()
924 ParseInt(app.postinstall_action->max_days_to_scatter); in ParseParams()
926 ParseBool(app.postinstall_action->disable_p2p_for_downloading); in ParseParams()
928 ParseBool(app.postinstall_action->disable_p2p_for_sharing); in ParseParams()
929 output_object->public_key_rsa = app.postinstall_action->public_key_rsa; in ParseParams()
931 if (!base::StringToUint(app.postinstall_action->max_failure_count_per_url, in ParseParams()
936 ParseBool(app.postinstall_action->disable_payload_backoff); in ParseParams()
938 ParseBool(app.postinstall_action->powerwash_required); in ParseParams()
1449 for (const auto& app : parser_data.apps) { in PersistCohorts() local
1451 if (app.id == params->GetAppId()) { in PersistCohorts()
1452 PersistCohortData(kPrefsOmahaCohort, app.cohort); in PersistCohorts()
1453 PersistCohortData(kPrefsOmahaCohortName, app.cohortname); in PersistCohorts()
1454 PersistCohortData(kPrefsOmahaCohortHint, app.cohorthint); in PersistCohorts()
1455 } else if (params->IsDlcAppId(app.id)) { in PersistCohorts()
1457 if (!params->GetDlcId(app.id, &dlc_id)) { in PersistCohorts()
1458 LOG(WARNING) << "Skip persisting cohorts for DLC App ID=" << app.id in PersistCohorts()
1465 app.cohort); in PersistCohorts()
1468 app.cohortname); in PersistCohorts()
1471 app.cohorthint); in PersistCohorts()
1473 LOG(WARNING) << "Skip persisting cohorts for unknown App ID=" << app.id; in PersistCohorts()