Lines Matching defs:app

114 // Returns an XML that goes into the body of the <app> element of the Omaha
175 // Returns the cohort* argument to include in the <app> tag for the passed
223 // Returns an XML that corresponds to the entire <app> node of the Omaha
318 string app_xml = " <app "
335 " </app>\n";
474 if (data->current_path == "/response/app") {
475 OmahaParserData::App app;
477 app.id = attrs["appid"];
480 app.cohort_set = true;
481 app.cohort = attrs["cohort"];
484 app.cohorthint_set = true;
485 app.cohorthint = attrs["cohorthint"];
488 app.cohortname_set = true;
489 app.cohortname = attrs["cohortname"];
491 data->apps.push_back(std::move(app));
492 } else if (data->current_path == "/response/app/updatecheck") {
507 } else if (data->current_path == "/response/app/updatecheck/urls/url") {
512 "/response/app/updatecheck/manifest/packages/package") {
518 } else if (data->current_path == "/response/app/updatecheck/manifest") {
523 "/response/app/updatecheck/manifest/actions/action") {
834 bool ParsePackage(OmahaParserData::App* app,
837 if (app->updatecheck_status == "noupdate") {
838 if (!app->packages.empty()) {
839 LOG(ERROR) << "No update in this <app> but <package> is not empty.";
845 if (app->packages.empty()) {
850 if (app->url_codebase.empty()) {
855 LOG(INFO) << "Found " << app->url_codebase.size() << " url(s)";
857 base::SplitString(app->action_postinstall_attrs[kTagMetadataSize],
862 base::SplitString(app->action_postinstall_attrs[kTagMetadataSignatureRsa],
867 base::SplitString(app->action_postinstall_attrs[kTagIsDeltaPayload],
871 for (size_t i = 0; i < app->packages.size(); i++) {
872 const auto& package = app->packages[i];
881 for (const string& codebase : app->url_codebase) {
935 LOG(INFO) << "Found " << parser_data->apps.size() << " <app>.";
974 for (const auto& app : parser_data->apps) {
975 if (app.id == params_->GetAppId()) {
976 if (app.cohort_set)
977 PersistCohortData(kPrefsOmahaCohort, app.cohort);
978 if (app.cohorthint_set)
979 PersistCohortData(kPrefsOmahaCohortHint, app.cohorthint);
980 if (app.cohortname_set)
981 PersistCohortData(kPrefsOmahaCohortName, app.cohortname);
997 for (auto& app : parser_data->apps)
998 if (!ParsePackage(&app, output_object, completer))
1011 // Don't update if any app has status="noupdate".
1012 LOG(INFO) << "No update for <app> " << i;
1018 // self, only update if there's at least one app really have update.
1019 LOG(INFO) << "Update to self for <app> " << i;
1021 LOG(INFO) << "Update for <app> " << i;
1042 for (auto& app : parser_data->apps) {
1043 if (app.id == params_->GetAppId()) {
1044 // this is the app (potentially the only app)
1045 output_object->version = app.manifest_version;
1047 app.id == params_->system_app_id()) {
1048 // this is the system app (this check is intentionally skipped if there is
1050 output_object->system_version = app.manifest_version;
1052 if (!app.action_postinstall_attrs.empty() && attrs.empty()) {
1053 attrs = app.action_postinstall_attrs;